You are here

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

Get entity bundle type.

Return value

string|null The entity bundle type.

2 calls to EntityField::getEntityBundleType()
EntityField::buildConfigurationForm in src/Plugin/Condition/EntityField.php
Form constructor.
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 553

Class

EntityField
Define the entity field condition base class.

Namespace

Drupal\entity_field_condition\Plugin\Condition

Code

protected function getEntityBundleType() : ?string {
  return $this
    ->getConfigurationEntity()['bundle'] ?? NULL;
}