public function RenewRole::__construct in Ubercart 8.4
Constructs a RenewRole 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\Database\Connection $database: The database service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event_dispatcher service.
Overrides ContextAwarePluginBase::__construct
File
- uc_role/
src/ Plugin/ RulesAction/ RenewRole.php, line 62
Class
- RenewRole
- Provides a 'Renew role' action.
Namespace
Drupal\uc_role\Plugin\RulesActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database, EventDispatcherInterface $eventDispatcher) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->database = $database;
$this->eventDispatcher = $eventDispatcher;
}