function TestNodeAction::doExecute

Sets the node title.

Parameters

\Drupal\node\NodeInterface $node: The node.

string $title: The title.

File

tests/modules/rules_test/src/Plugin/RulesAction/TestNodeAction.php, line 35

Class

TestNodeAction
Provides a test action that sets a node title.

Namespace

Drupal\rules_test\Plugin\RulesAction

Code

protected function doExecute(NodeInterface $node, $title) {
    $node->setTitle($title);
}