You are here

protected function ExtraFieldTypePluginBase::getTargetEntityTypeId in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/ExtraFieldTypePluginBase.php \Drupal\entity_extra_field\ExtraFieldTypePluginBase::getTargetEntityTypeId()

Get target entity type identifier.

Return value

string|null A target entity type identifier; otherwise NULL.

4 calls to ExtraFieldTypePluginBase::getTargetEntityTypeId()
ExtraFieldTokenPlugin::buildConfigurationForm in src/Plugin/ExtraFieldType/ExtraFieldTokenPlugin.php
Form constructor.
ExtraFieldTypePluginBase::getTargetEntityTypeBundle in src/ExtraFieldTypePluginBase.php
Get target entity type bundle.
ExtraFieldTypePluginBase::getTargetEntityTypeDefinition in src/ExtraFieldTypePluginBase.php
Get target entity type definition.
ExtraFieldViewsPlugin::buildConfigurationForm in src/Plugin/ExtraFieldType/ExtraFieldViewsPlugin.php
Form constructor.

File

src/ExtraFieldTypePluginBase.php, line 214

Class

ExtraFieldTypePluginBase
Define extra field type plugin base.

Namespace

Drupal\entity_extra_field

Code

protected function getTargetEntityTypeId() {
  return $this->currentRouteMatch
    ->getParameter('entity_type_id') ?: NULL;
}