你在这里

服务标签(Service Tags)

原文:https://www.drupal.org/node/2239393

标签用来表面一个服务应该用一种特别的方式来注册或者使用,请参考Symfony关于服务标签的文档
 
 
下面是D8中使用的服务标签列表。虽然这个列表中的大部分都还没有文档,但可以作为模块开发中的有用参考。
 
Name Provided By Description
access_check Drupal Add a access checker for a route. THIS IS LIKELY TO CHANGE.
authentication_provider @todo @todo
breadcrumb_builder @todo @todo
cache.bin @todo @todo
cache.context @todo @todo
config.factory.override @todo @todo
encoder @todo @todo
entity_resolver @todo @todo
event_subscriber @todo @todo
needs_destruction @todo @todo
normalizer @todo @todo
paramconverter @todo @todo
path_processor_inbound @todo @todo
persist @todo @todo
plugin_manager_cache_clear @todo @todo
route_enhancer Symfony available here
route_filter @todo @todo
route_processor_outbound @todo @todo
string_translator @todo @todo
theme_negotiator Drupal Change the way that drupal chooses the default theme. Seehttps://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Theme%21T...
twig.extension Twig available here