You are here

protected function WebformEntityStorageTrait::getEntityStorage in Webform 6.x

Retrieves the entity storage.

Parameters

string $entity_type: The entity type.

Return value

\Drupal\Core\Entity\EntityStorageInterface The entity storage.

6 calls to WebformEntityStorageTrait::getEntityStorage()
WebformElementBase::setConfigurationFormDefaultValue in src/Plugin/WebformElementBase.php
Set an element's configuration webform element default value.
WebformGroupManager::getCurrentGroupContent in modules/webform_group/src/WebformGroupManager.php
Get the group content for the current request.
WebformGroupManager::getUserGroupRoles in modules/webform_group/src/WebformGroupManager.php
Get current user group roles for group content.
WebformGroupManager::getWebformSubmissionGroupContent in modules/webform_group/src/WebformGroupManager.php
Get group content for a webform submission.
WebformManagedFileBase::getFileStorage in src/Plugin/WebformElement/WebformManagedFileBase.php
Retrieves the file storage.

... See full list

File

src/EntityStorage/WebformEntityStorageTrait.php, line 103

Class

WebformEntityStorageTrait
Trait for webform entity storage management.

Namespace

Drupal\webform\EntityStorage

Code

protected function getEntityStorage($entity_type) {
  return $this->entityTypeManager
    ->getStorage($entity_type);
}