function EntityTypeManager::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.
Overrides EntityTypeManagerInterface::getStorage
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php, line 194
Class
- EntityTypeManager
- Manages entity type plugin definitions.
Namespace
Drupal\Core\EntityCode
public function getStorage($entity_type_id) {
return $this->getHandler($entity_type_id, 'storage');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.