function EntityTypeManagerInterface::getStorage
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
- 10 core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
- 11.x core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
Creates a new storage instance.
Parameters
string $entity_type_id: The entity type ID for this storage.
Return value
\Drupal\Core\Entity\EntityStorageInterface A storage instance.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException Thrown if the entity type doesn't exist.
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException Thrown if the storage handler couldn't be loaded.
1 method overrides EntityTypeManagerInterface::getStorage()
- EntityTypeManager::getStorage in core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php - Creates a new storage instance.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeManagerInterface.php, line 38
Class
- EntityTypeManagerInterface
- Provides an interface for entity type managers.
Namespace
Drupal\Core\EntityCode
public function getStorage($entity_type_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.