function ContextConfig::toArray

Exports the configuration to an array.

Return value

array The config array, with the following keys set:

  • context_map: An array of data selectors, keyed by context name.
  • context_values: An array of context values, keyed by context name.
  • context_processors: An array of data processor config, keyed by context name and process plugin id.
  • provides_mapping: An array of context names to use for provided context, keyed by provided context name.
  • Any other other config keys that have been set.

File

src/Context/ContextConfig.php, line 174

Class

ContextConfig
Class for value objects helping with context configuration.

Namespace

Drupal\rules\Context

Code

public function toArray() {
    return $this->config;
}