altcolor-1.0.0-beta1/altcolor.services.yml
altcolor.services.yml
parameters:
altcolor.skip_procedural_hook_scan: true
services:
_defaults:
autowire: true
autoconfigure: true
altcolor.manager:
class: Drupal\altcolor\Plugin\AltColorPluginManager
arguments:
$cache_backend: '@cache.discovery'
tags:
- { name: plugin_manager_cache_clear }
Drupal\altcolor\Plugin\AltColorPluginManagerInterface: '@altcolor.manager'
theme.negotiator.altcolor_preview:
class: Drupal\altcolor\Theme\ColorPreviewThemeNegotiator
tags:
- { name: theme_negotiator, priority: 9999 }
# Services for procedural hooks. Can be removed when Drupal 10 is end of life.
Drupal\altcolor\Hook\AltColorHooks:
class: Drupal\altcolor\Hook\AltColorHooks
autowire: true
Drupal\altcolor\Hook\AltColorPreprocessHooks:
class: Drupal\altcolor\Hook\AltColorPreprocessHooks
autowire: true
Drupal\altcolor\Hook\AltColorFormHooks:
class: Drupal\altcolor\Hook\AltColorFormHooks
autowire: true
