public function SlackSendMessage::__construct in Slack 8
Constructs a SlackSendMessage 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\slack\SlackInterface $slack_service: The Slack manager service.
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ RulesAction/ SlackSendMessage.php, line 58
Class
- SlackSendMessage
- Provides a 'Slack send message' action.
Namespace
Drupal\slack\Plugin\RulesActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, SlackInterface $slack_service) {
$this->slackService = $slack_service;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}