function TestDebugLogAction::doExecute

Writes an error message to the debug log.

Parameters

string $message: Message string that should be logged. Defaults to "action called".

File

tests/modules/rules_test/src/Plugin/RulesAction/TestDebugLogAction.php, line 69

Class

TestDebugLogAction
Provides an action writing an error to the Rules debug logger channel.

Namespace

Drupal\rules_test\Plugin\RulesAction

Code

protected function doExecute($message = NULL) {
    if (empty($message)) {
        $message = 'action called';
    }
    $this->logger
        ->error($message);
}