You are here

public function DomainEntityMapper::deleteFieldStorage in Domain Access Entity 8

Deletes field storage.

Parameters

string $entity_type_id: The entity type ID.

File

src/DomainEntityMapper.php, line 121

Class

DomainEntityMapper
Provides fields operations for domain entity module fields.

Namespace

Drupal\domain_entity

Code

public function deleteFieldStorage($entity_type_id) {
  $field_storage = $this
    ->loadFieldStorage($entity_type_id);
  if ($field_storage) {
    $field_storage
      ->delete();
  }
}