function ChainEntityResolver::addResolver

Same name in other branches
  1. 9 core/modules/serialization/src/EntityResolver/ChainEntityResolver.php \Drupal\serialization\EntityResolver\ChainEntityResolver::addResolver()
  2. 10 core/modules/serialization/src/EntityResolver/ChainEntityResolver.php \Drupal\serialization\EntityResolver\ChainEntityResolver::addResolver()
  3. 11.x core/modules/serialization/src/EntityResolver/ChainEntityResolver.php \Drupal\serialization\EntityResolver\ChainEntityResolver::addResolver()

Overrides ChainEntityResolverInterface::addResolver

File

core/modules/serialization/src/EntityResolver/ChainEntityResolver.php, line 32

Class

ChainEntityResolver
Resolver delegating the entity resolution to a chain of resolvers.

Namespace

Drupal\serialization\EntityResolver

Code

public function addResolver(EntityResolverInterface $resolver) {
    $this->resolvers[] = $resolver;
}

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