function ContextConfig::process
Configures a data processor for the given context.
Parameters
string $context_name: The name of the context.
string $plugin_id: The id of the data processor plugin to use.
array $options: (optional) An array of plugin configuration, as used by the plugin.
Return value
$this
File
-
src/
Context/ ContextConfig.php, line 142
Class
- ContextConfig
- Class for value objects helping with context configuration.
Namespace
Drupal\rules\ContextCode
public function process($context_name, $plugin_id, array $options = []) {
$this->config['context_processors'][$context_name][$plugin_id] = $options;
return $this;
}