function DataSet::doExecute

Executes the Plugin.

Parameters

mixed $data: Original value of an element which is being updated.

mixed $value: A new value which is being set to an element identified by data selector.

File

src/Plugin/RulesAction/DataSet.php, line 42

Class

DataSet
Provides a 'Data set' action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

protected function doExecute($data, $value) {
    $typed_data = $this->getContext('data')
        ->getContextData();
    $typed_data->setValue($value);
}