You are here

protected function ConfigActionsPluginBase::addAllowed in Config Actions 8

Add additional allowed options. Used by Traits in plugins to add global options.

Parameters

array $allowed: key/value array where key is option name and value is default

1 call to ConfigActionsPluginBase::addAllowed()
ConfigActionsPluginBase::__construct in src/ConfigActionsPluginBase.php
Constructs a new ConfigActionsPlugin object.

File

src/ConfigActionsPluginBase.php, line 200

Class

ConfigActionsPluginBase
Base class for config_actions plugins.

Namespace

Drupal\config_actions

Code

protected function addAllowed(array $allowed) {
  $this->allowedOptions = array_merge($this->allowedOptions, $allowed);
}