You are here

public function UserExpire::__construct in User Expire 8

Constructs a \Drupal\user_expire\Plugin\RulesAction\UserExpire 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.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/RulesAction/UserExpire.php, line 49

Class

UserExpire
Provides "Expire User" action.

Namespace

Drupal\user_expire\Plugin\RulesAction

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->database = $database;
}