function ContainerInterface::generateServiceIdHash

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

Generate a unique hash for a service object.

Parameters

object $object: Object needing a unique hash.

Return value

string A unique hash identifying the object.

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 50

Class

ContainerInterface
The interface for Drupal service container classes.

Namespace

Drupal\Component\DependencyInjection

Code

public function generateServiceIdHash(object $object) : string;

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