public function SystemMessage::__construct in Rules 8.3
Constructs a SystemMessage object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ RulesAction/ SystemMessage.php, line 63
Class
- SystemMessage
- Provides a 'Show a message on the site' action.
Namespace
Drupal\rules\Plugin\RulesActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MessengerInterface $messenger) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->messenger = $messenger;
}