You are here

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

Get entity context data entity field definitions.

Parameters

string $bundle: The entity bundle type name.

Return value

\Drupal\Core\Field\FieldDefinitionInterface[] An array of the field definitions.

Throws

\Drupal\Component\Plugin\Exception\PluginException

1 call to EntityField::getEntityContextDataEntityFieldDefinitions()
EntityField::getEntityBundleFieldOptions in src/Plugin/Condition/EntityField.php
Get the entity field options.

File

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

Class

EntityField
Define the entity field condition base class.

Namespace

Drupal\entity_field_condition\Plugin\Condition

Code

protected function getEntityContextDataEntityFieldDefinitions(string $bundle) : array {
  return $this->entityFieldManager
    ->getFieldDefinitions($this
    ->getEntityContextDataEntityTypeId(), $bundle);
}