protected function EntityField::hasEntityContext in Entity Field Condition 2.0.x
Determine if the entity context exist.
Throws
\Drupal\Component\Plugin\Exception\PluginException
1 call to EntityField::hasEntityContext()
- EntityField::evaluate in src/
Plugin/ Condition/ EntityField.php - Evaluates the condition and returns TRUE or FALSE accordingly.
File
- src/
Plugin/ Condition/ EntityField.php, line 523
Class
- EntityField
- Define the entity field condition base class.
Namespace
Drupal\entity_field_condition\Plugin\ConditionCode
protected function hasEntityContext() : bool {
return $this
->getContextValue('entity') instanceof ContentEntityInterface;
}