You are here

public static function ContextConfig::create in Rules 8.3

Creates a context config object.

Parameters

array $values: (optional) Some initial values to set. In the same format as returned from static::toArray().

Return value

$this

1 call to ContextConfig::create()
ContextFormTrait::getContextConfigFromFormValues in src/Context/Form/ContextFormTrait.php
Creates a context config object from the submitted form values.

File

src/Context/ContextConfig.php, line 36

Class

ContextConfig
Class for value objects helping with context configuration.

Namespace

Drupal\rules\Context

Code

public static function create(array $values = []) {
  return new static($values);
}