<?php

function dc_core_page_attachments(array &$attachments) {
  if (\Drupal::service('router.admin_context')->isAdminRoute()) {
    $attachments['#attached']['library'][] = 'dc_core/admin_overrides';
  }
  if (\Drupal::routeMatch()->getRouteObject()->getOption('_layout_builder')) {
   $attachments['#attached']['library'][] = 'dc_core/admin_overrides';
  }
}
