You are here

public function ConditionSetController::init in Business Rules 8

Same name and namespace in other branches
  1. 2.x 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\Controller

Code

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';
}