Primary tabs

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

Name Filesort descending Class Tags
cache.backend.null core/assets/scaffold/files/development.services.yml Drupal\Core\Cache\NullBackendFactory
database.replica_kill_switch core/core.services.yml Drupal\Core\Database\ReplicaKillSwitch event_subscriber
feed.bridge.reader core/core.services.yml Drupal\Component\Bridge\ZfExtensionManagerSfContainer
datetime.time core/core.services.yml Drupal\Component\Datetime\Time
feed.bridge.writer core/core.services.yml Drupal\Component\Bridge\ZfExtensionManagerSfContainer
file_system core/core.services.yml Drupal\Core\File\FileSystem
feed.reader.dublincoreentry core/core.services.yml Laminas\Feed\Reader\Extension\DublinCore\Entry
form_builder core/core.services.yml Drupal\Core\Form\FormBuilder
feed.reader.dublincorefeed core/core.services.yml Laminas\Feed\Reader\Extension\DublinCore\Feed
form_validator core/core.services.yml Drupal\Core\Form\FormValidator
feed.reader.contententry core/core.services.yml Laminas\Feed\Reader\Extension\Content\Entry
form_submitter core/core.services.yml Drupal\Core\Form\FormSubmitter
feed.reader.atomentry core/core.services.yml Laminas\Feed\Reader\Extension\Atom\Entry
form_error_handler core/core.services.yml Drupal\Core\Form\FormErrorHandler
feed.reader.atomfeed core/core.services.yml Laminas\Feed\Reader\Extension\Atom\Feed
form_cache core/core.services.yml Drupal\Core\Form\FormCache
feed.reader.slashentry core/core.services.yml Laminas\Feed\Reader\Extension\Slash\Entry
keyvalue core/core.services.yml Drupal\Core\KeyValueStore\KeyValueFactory
feed.reader.wellformedwebentry core/core.services.yml Laminas\Feed\Reader\Extension\WellFormedWeb\Entry
keyvalue.database core/core.services.yml Drupal\Core\KeyValueStore\KeyValueDatabaseFactory
feed.reader.threadentry core/core.services.yml Laminas\Feed\Reader\Extension\Thread\Entry
access_check.entity_bundles core/core.services.yml Drupal\Core\Entity\EntityBundleAccessCheck access_check
keyvalue.expirable core/core.services.yml Drupal\Core\KeyValueStore\KeyValueExpirableFactory
feed.reader.podcastentry core/core.services.yml Laminas\Feed\Reader\Extension\Podcast\Entry
keyvalue.expirable.database core/core.services.yml Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory
feed.reader.podcastfeed core/core.services.yml Laminas\Feed\Reader\Extension\Podcast\Feed
logger.factory core/core.services.yml Drupal\Core\Logger\LoggerChannelFactory service_collector
feed.writer.atomrendererfeed core/core.services.yml Laminas\Feed\Writer\Extension\Atom\Renderer\Feed
logger.channel_base core/core.services.yml Drupal\Core\Logger\LoggerChannel
feed.writer.contentrendererentry core/core.services.yml Laminas\Feed\Writer\Extension\Content\Renderer\Entry
logger.channel.default core/core.services.yml
feed.writer.dublincorerendererentry core/core.services.yml Laminas\Feed\Writer\Extension\DublinCore\Renderer\Entry
logger.channel.php core/core.services.yml
feed.writer.dublincorerendererfeed core/core.services.yml Laminas\Feed\Writer\Extension\DublinCore\Renderer\Feed
logger.channel.image core/core.services.yml
feed.writer.itunesentry core/core.services.yml Laminas\Feed\Writer\Extension\ITunes\Entry
logger.channel.cron core/core.services.yml
feed.writer.itunesfeed core/core.services.yml Laminas\Feed\Writer\Extension\ITunes\Feed
logger.channel.file core/core.services.yml Drupal\Core\Logger\LoggerChannel
feed.writer.itunesrendererentry core/core.services.yml Laminas\Feed\Writer\Extension\ITunes\Renderer\Entry
logger.channel.form core/core.services.yml
feed.writer.itunesrendererfeed core/core.services.yml Laminas\Feed\Writer\Extension\ITunes\Renderer\Feed
logger.channel.security core/core.services.yml
feed.writer.slashrendererentry core/core.services.yml Laminas\Feed\Writer\Extension\Slash\Renderer\Entry
logger.log_message_parser core/core.services.yml Drupal\Core\Logger\LogMessageParser
feed.writer.threadingrendererentry core/core.services.yml Laminas\Feed\Writer\Extension\Threading\Renderer\Entry
serialization.json core/core.services.yml Drupal\Component\Serialization\Json
feed.writer.wellformedwebrendererentry core/core.services.yml Laminas\Feed\Writer\Extension\WellFormedWeb\Renderer\Entry
serialization.phpserialize core/core.services.yml Drupal\Component\Serialization\PhpSerialize
theme.manager core/core.services.yml Drupal\Core\Theme\ThemeManager

Pages

Other projects