EntityTypeManagerInterface::getStorage

public EntityTypeManagerInterface::getStorage($entity_type)

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

File

core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php, line 35

Class

EntityTypeManagerInterface
Provides an interface for entity type managers.

Namespace

Drupal\Core\Entity

Code

1
public function getStorage($entity_type);
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.