public function ConditionSetController::init in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Controller/ConditionSetController.php \Drupal\business_rules\Controller\ConditionSetController::init()
Init properties.
Parameters
\Drupal\business_rules\Entity\Condition $condition: The ActionSet action.
1 call to ConditionSetController::init()
- ConditionSetController::itemsTable in src/Controller/ ConditionSetController.php 
- The items table.
File
- src/Controller/ ConditionSetController.php, line 279 
Class
- ConditionSetController
- Class ConditionSetController.
Namespace
Drupal\business_rules\ControllerCode
public function init(Condition $condition) {
  $this->label = $this
    ->t('Condition');
  $this->labelPlural = $this
    ->t('Conditions');
  $this->items = ConditionSet::getAvailableItems($condition);
  $this->itemsName = 'conditions';
  $this->itemType = 'condition';
}