You are here

protected function EntityField::getEntityContextDataEntityDefinition in Entity Field Condition 2.0.x

Get entity context data entity definition.

Return value

\Drupal\Core\Entity\EntityTypeInterface The entity definition object.

Throws

\Drupal\Component\Plugin\Exception\PluginException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 call to EntityField::getEntityContextDataEntityDefinition()
EntityField::summary in src/Plugin/Condition/EntityField.php
Provides a human readable summary of the condition's configuration.

File

src/Plugin/Condition/EntityField.php, line 644

Class

EntityField
Define the entity field condition base class.

Namespace

Drupal\entity_field_condition\Plugin\Condition

Code

protected function getEntityContextDataEntityDefinition() : EntityTypeInterface {
  return $this->entityTypeManager
    ->getDefinition($this
    ->getEntityContextDataEntityTypeId());
}