Newer
Older
<?php
function buckeye_bot_preprocess_html(&$variables)
{
$is_admin = \Drupal::service('router.admin_context')->isAdminRoute();
if (!$is_admin) {
$config = \Drupal::config('buckeye_bot.buckeye_bot_config');
$buckeye_bot_status = $config->get('buckeye_bot_status');
if ($buckeye_bot_status) {
$variables['#attached']['library'][] = 'buckeye_bot/buckeye_bot';
}
}
}