Primary tabs

  1. 8.5.x core/core.api.php listing_page_service
  2. 8.0.x core/core.api.php listing_page_service
  3. 8.1.x core/core.api.php listing_page_service
  4. 8.2.x core/core.api.php listing_page_service
  5. 8.3.x core/core.api.php listing_page_service
  6. 8.4.x core/core.api.php listing_page_service
  7. 8.6.x core/core.api.php listing_page_service

Introduction to services

A "service" (such as accessing the database, sending email, or translating user interface text) can be defined by a module or Drupal core. Defining a service means giving it a name and designating a default class to provide the service; ideally, there should also be an interface that defines the methods that may be called. Services are collected into the Dependency Injection Container, and can be overridden to use different classes or different instantiation by modules. See the Services and Dependency Injection Container topic for details.

Some services have tags, which are defined in the service definition. Tags are used to define a group of related services, or to specify some aspect of how the service behaves. See the Service Tags topic for more information.

See also

Services and Dependency Injection Container

Service Tags

Contains filters are case sensitive
Namesort descending File Class Tags
dynamic_page_cache_response_policy core/modules/dynamic_page_cache/dynamic_page_cache.services.yml Drupal\Core\PageCache\ChainResponsePolicy service_collector
dynamic_page_cache_subscriber core/modules/dynamic_page_cache/dynamic_page_cache.services.yml Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber event_subscriber
early_rendering_controller_wrapper_subscriber core/core.services.yml Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber event_subscriber
early_translation_test.authentication.early_translation_test core/modules/locale/tests/modules/early_translation_test/early_translation_test.services.yml Drupal\early_translation_test\Auth authentication_provider
element.editor core/modules/editor/editor.services.yml Drupal\editor\Element
element_info core/core.services.yml Alias of plugin.manager.element_info
email.validator core/core.services.yml Egulias\EmailValidator\EmailValidator
entity.autocomplete_matcher core/core.services.yml Drupal\Core\Entity\EntityAutocompleteMatcher
entity.bundle_config_import_validator core/core.services.yml Drupal\Core\Entity\Event\BundleConfigImportValidate event_subscriber
entity.definition_update_manager core/core.services.yml Drupal\Core\Entity\EntityDefinitionUpdateManager
entity.form_builder core/core.services.yml Drupal\Core\Entity\EntityFormBuilder
entity.last_installed_schema.repository core/core.services.yml Drupal\Core\Entity\EntityLastInstalledSchemaRepository
entity.manager core/core.services.yml Drupal\Core\Entity\EntityManager plugin_manager_cache_clear
entity.query core/core.services.yml Drupal\Core\Entity\Query\QueryFactory
entity.query.config core/core.services.yml Drupal\Core\Config\Entity\Query\QueryFactory event_subscriber
entity.query.keyvalue core/core.services.yml Drupal\Core\Entity\KeyValueStore\Query\QueryFactory
entity.query.null core/core.services.yml Drupal\Core\Entity\Query\Null\QueryFactory
entity.query.sql core/core.services.yml Drupal\Core\Entity\Query\Sql\QueryFactory backend_overridable
entity.repository core/core.services.yml Drupal\Core\Entity\EntityRepository
entity_bundle.listener core/core.services.yml Drupal\Core\Entity\EntityBundleListener
entity_display.repository core/core.services.yml Drupal\Core\Entity\EntityDisplayRepository
entity_field.deleted_fields_repository core/core.services.yml Drupal\Core\Field\DeletedFieldsRepository
entity_field.manager core/core.services.yml Drupal\Core\Entity\EntityFieldManager
entity_route_subscriber core/core.services.yml Drupal\Core\EventSubscriber\EntityRouteProviderSubscriber event_subscriber
entity_test.definition.subscriber core/modules/system/tests/modules/entity_test/entity_test.services.yml Drupal\entity_test\EntityTestDefinitionSubscriber event_subscriber
entity_type.bundle.info core/core.services.yml Drupal\Core\Entity\EntityTypeBundleInfo
entity_type.listener core/core.services.yml Drupal\Core\Entity\EntityTypeListener
entity_type.manager core/core.services.yml Drupal\Core\Entity\EntityTypeManager plugin_manager_cache_clear
entity_type.repository core/core.services.yml Drupal\Core\Entity\EntityTypeRepository
event_dispatcher core/core.services.yml Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher
exception.custom_page_html core/core.services.yml Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber event_subscriber
exception.default_html core/core.services.yml Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber event_subscriber
exception.default_json core/core.services.yml Drupal\Core\EventSubscriber\ExceptionJsonSubscriber event_subscriber
exception.enforced_form_response core/core.services.yml Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber event_subscriber
exception.fast_404_html core/core.services.yml Drupal\Core\EventSubscriber\Fast404ExceptionHtmlSubscriber event_subscriber
exception.final core/core.services.yml Drupal\Core\EventSubscriber\FinalExceptionSubscriber event_subscriber
exception.logger core/core.services.yml Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber event_subscriber
exception.needs_installer core/core.services.yml Drupal\Core\EventSubscriber\ExceptionDetectNeedsInstallSubscriber event_subscriber
exception.test_site core/core.services.yml Drupal\Core\EventSubscriber\ExceptionTestSiteSubscriber event_subscriber
feed.bridge.reader core/core.services.yml Drupal\Component\Bridge\ZfExtensionManagerSfContainer
feed.bridge.writer core/core.services.yml Drupal\Component\Bridge\ZfExtensionManagerSfContainer
feed.reader.atomentry core/core.services.yml Zend\Feed\Reader\Extension\Atom\Entry
feed.reader.atomfeed core/core.services.yml Zend\Feed\Reader\Extension\Atom\Feed
feed.reader.contententry core/core.services.yml Zend\Feed\Reader\Extension\Content\Entry
feed.reader.dublincoreentry core/core.services.yml Zend\Feed\Reader\Extension\DublinCore\Entry
feed.reader.dublincorefeed core/core.services.yml Zend\Feed\Reader\Extension\DublinCore\Feed
feed.reader.podcastentry core/core.services.yml Zend\Feed\Reader\Extension\Podcast\Entry
feed.reader.podcastfeed core/core.services.yml Zend\Feed\Reader\Extension\Podcast\Feed
feed.reader.slashentry core/core.services.yml Zend\Feed\Reader\Extension\Slash\Entry
feed.reader.threadentry core/core.services.yml Zend\Feed\Reader\Extension\Thread\Entry

Pages

Other projects