function TestStringAction::doExecute

Concatenates the text with itself.

Parameters

string $text: The text to concatenate.

File

tests/modules/rules_test/src/Plugin/RulesAction/TestStringAction.php, line 36

Class

TestStringAction
Provides a test action that concatenates a string to itself.

Namespace

Drupal\rules_test\Plugin\RulesAction

Code

protected function doExecute($text) {
    $this->setProvidedValue('concatenated', $text . $text);
}