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