protected function ContentEntityNormalizer::loadEntityDependency in Default Content for D8 2.0.x
Loads the entity dependency by its UUID.
Parameters
string $target_uuid: The entity UUID.
Return value
\Drupal\Core\Entity\ContentEntityInterface|null The loaded entity.
1 call to ContentEntityNormalizer::loadEntityDependency()
- ContentEntityNormalizer::setFieldValues in src/
Normalizer/ ContentEntityNormalizer.php - Set field values based on the normalized data.
File
- src/
Normalizer/ ContentEntityNormalizer.php, line 472
Class
- ContentEntityNormalizer
- Normalizes and denormalizes content entities.
Namespace
Drupal\default_content\NormalizerCode
protected function loadEntityDependency(string $target_uuid) {
if (isset($this->dependencies[$target_uuid])) {
return $this->entityRepository
->loadEntityByUuid($this->dependencies[$target_uuid], $target_uuid);
}
return NULL;
}