You are here

public function FieldStorageConfig::getTargetEntityTypeId in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getTargetEntityTypeId()

Returns the ID of the entity type the field is attached to.

This method should not be confused with EntityInterface::getEntityTypeId() (configurable fields are config entities, and thus implement both interfaces):

Return value

string The entity type ID.

Overrides FieldStorageDefinitionInterface::getTargetEntityTypeId

4 calls to FieldStorageConfig::getTargetEntityTypeId()
FieldStorageConfig::id in core/modules/field/src/Entity/FieldStorageConfig.php
Gets the identifier.
FieldStorageConfig::postSave in core/modules/field/src/Entity/FieldStorageConfig.php
Acts on a saved entity before the insert or update hook is invoked.
FieldStorageConfig::preSaveNew in core/modules/field/src/Entity/FieldStorageConfig.php
Prepares saving a new field definition.
FieldStorageConfig::preSaveUpdated in core/modules/field/src/Entity/FieldStorageConfig.php
Prepares saving an updated field definition.

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 694

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getTargetEntityTypeId() {
  return $this->entity_type;
}