function ContentDevelGenerate::__construct
The construct.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\Core\Entity\EntityStorageInterface $node_storage: The node storage.
\Drupal\Core\Entity\EntityStorageInterface $node_type_storage: The node type storage.
\Drupal\user\UserStorageInterface $user_storage: The user storage.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\comment\CommentManagerInterface $comment_manager: The comment manager service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\content_translation\ContentTranslationManagerInterface $content_translation_manager: The content translation manager service.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator service.
\Drupal\path_alias\PathAliasStorage $alias_storage: The alias storage.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Datetime\Time $time: Provides system time.
\Drupal\Core\Database\Connection $database: Database connection.
File
-
devel_generate/
src/ Plugin/ DevelGenerate/ ContentDevelGenerate.php, line 171
Class
- ContentDevelGenerate
- Provides a ContentDevelGenerate plugin.
Namespace
Drupal\devel_generate\Plugin\DevelGenerateCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityStorageInterface $node_storage, EntityStorageInterface $node_type_storage, UserStorageInterface $user_storage, ModuleHandlerInterface $module_handler, CommentManagerInterface $comment_manager = NULL, LanguageManagerInterface $language_manager, ContentTranslationManagerInterface $content_translation_manager = NULL, UrlGeneratorInterface $url_generator, PathAliasStorage $alias_storage, DateFormatterInterface $date_formatter, Time $time, Connection $database) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moduleHandler = $module_handler;
$this->nodeStorage = $node_storage;
$this->nodeTypeStorage = $node_type_storage;
$this->userStorage = $user_storage;
$this->commentManager = $comment_manager;
$this->languageManager = $language_manager;
$this->contentTranslationManager = $content_translation_manager;
$this->urlGenerator = $url_generator;
$this->aliasStorage = $alias_storage;
$this->dateFormatter = $date_formatter;
$this->time = $time;
$this->database = $database;
}