public function RenewFile::__construct in Ubercart 8.4
Constructs a RenewFile 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_file/
src/ Plugin/ RulesAction/ RenewFile.php, line 57
Class
- RenewFile
- Provides a 'Renew file grant' action.
Namespace
Drupal\uc_file\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;
}