public function BusinessRulesItemBase::isContextDependent in Business Rules 8
Same name and namespace in other branches
- 2.x src/Entity/BusinessRulesItemBase.php \Drupal\business_rules\Entity\BusinessRulesItemBase::isContextDependent()
Is the item context dependent?
Return value
bool True if the item is context dependent, false if not.
Overrides ItemInterface::isContextDependent
File
- src/
Entity/ BusinessRulesItemBase.php, line 260
Class
- BusinessRulesItemBase
- Class Item.
Namespace
Drupal\business_rules\EntityCode
public function isContextDependent() {
$type = $this
->getType();
$definition = $this
->getItemManager()
->getDefinition($type);
return $definition['isContextDependent'];
}