protected function TestNodeAction::doExecute in Rules 8.3
Sets the node title.
Parameters
\Drupa\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\RulesActionCode
protected function doExecute(NodeInterface $node, $title) {
$node
->setTitle($title);
}