private static function EntityCreationTrait::getEntityStorage in Select2 Boxes 8
Get entity storage handler for specified entity type.
Parameters
string $entity_type_id: Entity type ID.
Return value
\Drupal\Core\Entity\EntityStorageInterface Entity storage handler.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 call to EntityCreationTrait::getEntityStorage()
- EntityCreationTrait::getOrCreateEntity in src/
EntityCreationTrait.php - Get an entity by its properties, or create it if it doesn't exist.
File
- src/
EntityCreationTrait.php, line 76
Class
- EntityCreationTrait
- Trait EntityCreationTrait.
Namespace
Drupal\select2boxesCode
private static function getEntityStorage($entity_type_id) {
return \Drupal::entityTypeManager()
->getStorage($entity_type_id);
}