protected function EntityLoadHelper::getEntityStorage in YAML Content 8
Load an entity storage handler.
Parameters
string $entity_type: The entity type id of the definition to load.
Return value
\Drupal\Core\Entity\EntityStorageInterface The storage handler service for the entity type.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
2 calls to EntityLoadHelper::getEntityStorage()
- EntityLoadHelper::loadByProperties in src/
Service/ EntityLoadHelper.php - Load an existing entity by property data.
- EntityLoadHelper::loadByUuid in src/
Service/ EntityLoadHelper.php - Load an existing entity by UUID.
File
- src/
Service/ EntityLoadHelper.php, line 147
Class
- EntityLoadHelper
- A helper class to support identification and loading of existing entities.
Namespace
Drupal\yaml_content\ServiceCode
protected function getEntityStorage($entity_type) {
return $this
->getEntityTypeManager()
->getStorage($entity_type);
}