function ContainerInterface::getServiceIdMappings

Same name in other branches
  1. 10 core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php \Drupal\Component\DependencyInjection\ContainerInterface::getServiceIdMappings()

Collect a mapping between service to ids.

Return value

array Service ids keyed by a unique hash.

Deprecated

in drupal:9.5.1 and is removed from drupal:11.0.0. Use the 'Drupal\Component\DependencyInjection\ReverseContainer' service instead.

See also

https://www.drupal.org/node/3327942

File

core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php, line 34

Class

ContainerInterface
The interface for Drupal service container classes.

Namespace

Drupal\Component\DependencyInjection

Code

public function getServiceIdMappings() : array;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.