component_library-1.0.x-dev/component_library.services.yml
component_library.services.yml
services:
logger.channel.component_library:
parent: logger.channel_base
arguments: [ 'component_library' ]
component_library.twig_extension:
class: Drupal\component_library\ComponentLibraryTwigExtension
tags:
- { name: twig.extension }
twig.loader.component_variation:
class: Drupal\component_library\VariationTemplateLoader
arguments: ['@entity_type.manager', '@cache.config']
tags:
# It needs to be loaded before @twig.loader.string.
- {name: twig.loader, priority: -150}
component_library.entity_field_yaml_placeholder.event_subscriber:
class: Drupal\component_library\EventSubscriber\EntityFieldYamlPlaceholders
tags:
- { name: event_subscriber }
plugin.manager.component_override:
class: Drupal\component_library\ComponentOverrideManager
parent: default_plugin_manager
arguments: ['@theme.registry', '@extension.list.theme', '@event_dispatcher']
component_library:not_admin:
class: Drupal\component_library\Routing\NotAdminRouteSubscriber
tags:
- { name: event_subscriber }
component_library.asset:
class: Drupal\component_library\Asset
arguments: ['@file_system', '@library.discovery','@config.factory']
component_library.asset.generate_files:
arguments: ['@config.factory', '@component_library.asset', '@entity_type.manager']
class: Drupal\component_library\EventSubscriber\GenerateAssetFiles
tags:
- { name: event_subscriber }
component_library.override_mode:
class: Drupal\component_library\OverrideMode
arguments:
- '@theme.manager'
- '@theme.registry'
- '@redirect.destination'
- '@logger.factory'
- '@renderer'
- '@event_dispatcher'
- '@uuid'
- '@twig.loader.component_override'
- '@config.factory'
- '@current_user'
- '@entity_type.manager'
twig.loader.component_override:
class: Drupal\component_library\Twig\Loader
arguments:
- '@entity_type.manager'
- '@theme.manager'
tags:
- { name: twig.loader, priority: 110 }
component_library.prepare_override.content_entity:
class: Drupal\component_library\EventSubscriber\PrepareOverrideContentEntity
arguments: ['@layout_builder.sample_entity_generator', '@plugin.manager.component_override', '@entity_type.manager', '@module_handler']
tags:
- { name: event_subscriber }
component_library.prepare_override.override_mode:
class: Drupal\component_library\EventSubscriber\PrepareOverrideOverrideMode
arguments: ['@request_stack']
tags:
- { name: event_subscriber }
component_library.ignore_template:
class: Drupal\component_library\EventSubscriber\IgnoreTemplate
arguments: []
tags:
- { name: event_subscriber }
component_library.variables_placeholder.content_entity:
class: Drupal\component_library\EventSubscriber\VariablesPlaceholderContentEntity
arguments:
- '@layout_builder.sample_entity_generator'
tags:
- { name: event_subscriber }
component_library.variables_placeholder.view_builder:
class: Drupal\component_library\EventSubscriber\VariablesPlaceholderViewBuilder
arguments:
- '@entity_type.manager'
tags:
- { name: event_subscriber }
component_library.variables_placeholder.entity_type_manager:
class: Drupal\component_library\EventSubscriber\VariablesPlaceholderEntityTypeManager
arguments:
- '@entity_type.manager'
tags:
- { name: event_subscriber }
component_library.variables_placeholder.view:
class: Drupal\component_library\EventSubscriber\VariablesPlaceholderView
arguments: []
tags:
- { name: event_subscriber }
component_library.variables_placeholder.current_user:
class: Drupal\component_library\EventSubscriber\VariablesPlaceholderCurrentUser
arguments:
- '@current_user'
tags:
- { name: event_subscriber }
component_library.variables_placeholder.config_entity:
class: Drupal\component_library\EventSubscriber\VariablesPlaceholderConfigEntity
tags:
- { name: event_subscriber }
component_library.variables_placeholder.url:
class: Drupal\component_library\EventSubscriber\VariablesPlaceholderUrl
arguments:
- '@component_library.override_mode'
tags:
- { name: event_subscriber }
component_library.variables_placeholder.language:
class: Drupal\component_library\EventSubscriber\VariablesPlaceholderLanguage
tags:
- { name: event_subscriber }
