function UserDevelGenerate::__construct

Constructs a new UserDevelGenerate 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\Entity\EntityStorageInterface $entity_storage: The user storage.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Datetime\TimeInterface $time: Provides system time.

File

devel_generate/src/Plugin/DevelGenerate/UserDevelGenerate.php, line 70

Class

UserDevelGenerate
Provides a UserDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter, TimeInterface $time) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->userStorage = $entity_storage;
    $this->dateFormatter = $date_formatter;
    $this->time = $time;
}