Implements hook_theme_registry_alter().
public function themeRegistryAlter(array &$theme_registry) : void { // If Claro is the admin theme but not the active theme, use Claro's toolbar // templates. if (_system_is_claro_admin_and_not_active()) { require_once DRUPAL_ROOT . '/core/themes/claro/claro.theme'; claro_system_module_invoked_theme_registry_alter($theme_registry); } }