You are here

public function EntityTypeManagerInterface::getStorage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()

Creates a new storage instance.

Parameters

string $entity_type: The entity type for this storage.

Return value

\Drupal\Core\Entity\EntityStorageInterface A storage instance.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

2 methods override EntityTypeManagerInterface::getStorage()
EntityManager::getStorage in core/lib/Drupal/Core/Entity/EntityManager.php
EntityTypeManager::getStorage in core/lib/Drupal/Core/Entity/EntityTypeManager.php
Creates a new storage instance.

File

core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php, line 40
Contains \Drupal\Core\Entity\EntityTypeManagerInterface.

Class

EntityTypeManagerInterface
Provides an interface for entity type managers.

Namespace

Drupal\Core\Entity

Code

public function getStorage($entity_type);