You are here

public function DomainEntityMapper::loadFieldStorage in Domain Access Entity 8

Loads field storage config.

Parameters

string $entity_type_id: The entity type ID.

Return value

\Drupal\field\Entity\FieldStorageConfig|null The field storage or NULL.

3 calls to DomainEntityMapper::loadFieldStorage()
DomainEntityMapper::createFieldStorage in src/DomainEntityMapper.php
Creates field storage.
DomainEntityMapper::deleteFieldStorage in src/DomainEntityMapper.php
Deletes field storage.
DomainEntityMapper::getEnabledEntityTypes in src/DomainEntityMapper.php
Returns entity types that have domain access field storage.

File

src/DomainEntityMapper.php, line 94

Class

DomainEntityMapper
Provides fields operations for domain entity module fields.

Namespace

Drupal\domain_entity

Code

public function loadFieldStorage($entity_type_id) {
  $storage = $this->entityTypeManager
    ->getStorage('field_storage_config');
  return $storage
    ->load($entity_type_id . '.' . self::FIELD_NAME);
}