trait ServiceIdHashTrait
{ /**
* Implements \Drupal\Component\DependencyInjection\ContainerInterface::getServiceIdMappings()
*/
public function getServiceIdMappings(): array
{ @
trigger_error(__METHOD__ . "() is deprecated in drupal:9.5.1 and is removed from drupal:11.0.0. Use the 'Drupal\Component\DependencyInjection\ReverseContainer' service instead. See https://www.drupal.org/node/3327942", E_USER_DEPRECATED
);
$mapping =
[];
foreach ($this->
getServiceIds() as $service_id) { if ($this->
initialized($service_id) &&
$service_id !== 'service_container'
) { $mapping[$this->
generateServiceIdHash($this->
get($service_id))] =
$service_id;
} } return $mapping;
} /**
* Implements \Drupal\Component\DependencyInjection\ContainerInterface::generateServiceIdHash()
*/
public function generateServiceIdHash(object
$object): string
{ @
trigger_error(__METHOD__ . "() is deprecated in drupal:9.5.1 and is removed from drupal:11.0.0. Use the 'Drupal\Component\DependencyInjection\ReverseContainer' service instead. See https://www.drupal.org/node/3327942", E_USER_DEPRECATED
);
// Include class name as an additional namespace for the hash since