You are here

public function BusinessRule::getTargetBundle in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Entity/BusinessRule.php \Drupal\business_rules\Entity\BusinessRule::getTargetBundle()

The target entity bundle id which this rule is applicable.

Context: The rule target bundle id.

Overrides BusinessRuleInterface::getTargetBundle

3 calls to BusinessRule::getTargetBundle()
BusinessRule::checkItemContext in src/Entity/BusinessRule.php
Check if the item is on the same context as the Business Rule.
BusinessRule::filterContextAvailableItems in src/Entity/BusinessRule.php
Return a list of Conditions|Actions compatible with the Rule.
BusinessRule::getTargetBundleLabel in src/Entity/BusinessRule.php
The label of the target entity bundle id which this rule is applicable.

File

src/Entity/BusinessRule.php, line 233

Class

BusinessRule
Defines the Rule entity.

Namespace

Drupal\business_rules\Entity

Code

public function getTargetBundle() {
  return $this->target_bundle;
}