/**
  * {@inheritdoc}
  *
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  * @param \Drupal\comment\CommentManagerInterface $comment_manager
  *   The comment manager service.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, ModuleHandlerInterface $module_handler, CommentManagerInterface $comment_manager = NULL, UrlGeneratorInterface $urlGenerator)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->moduleHandler = $module_handler;
     $this->commentManager = $comment_manager;
     $this->urlGenerator = $urlGenerator;
 }
Ejemplo n.º 2
0
 /**
  * Constructs a MenuDevelGenerate object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin ID for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree
  *   The menu tree service.
  * @param \Drupal\Core\Entity\EntityStorageInterface $menu_storage
  *   The menu storage.
  * @param \Drupal\Core\Entity\EntityStorageInterface $menu_link_storage
  *   The menu storage.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MenuLinkTreeInterface $menu_tree, EntityStorageInterface $menu_storage, EntityStorageInterface $menu_link_storage, ModuleHandlerInterface $module_handler)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->menuLinkTree = $menu_tree;
     $this->menuStorage = $menu_storage;
     $this->menuLinkContentStorage = $menu_link_storage;
     $this->moduleHandler = $module_handler;
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $product_storage, EntityStorageInterface $product_type_storage, EntityStorageInterface $variation_storage, EntityStorageInterface $variation_type_storage, LanguageManagerInterface $language_manager)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->productStorage = $product_storage;
     $this->productTypeStorage = $product_type_storage;
     $this->variationStorage = $variation_storage;
     $this->variationTypeStorage = $variation_type_storage;
     $this->languageManager = $language_manager;
 }
Ejemplo n.º 4
0
 /**
  * Constructs a new UserDevelGenerate object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $entity_storage
  *   The user storage.
  * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
  *   The date formatter service.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->userStorage = $entity_storage;
     $this->dateFormatter = $date_formatter;
 }
 /**
  * Constructs a new VocabularyDevelGenerate object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $entity_storage
  *   The vocabulary storage.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $entity_storage)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->vocabularyStorage = $entity_storage;
 }
Ejemplo n.º 6
0
 /**
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin ID for the plugin instance.
  * @param array $plugin_definition
  * @param \Drupal\Core\Entity\EntityStorageInterface $node_storage
  *   The node storage.
  * @param \Drupal\Core\Entity\EntityStorageInterface $node_type_storage
  *   The node type storage.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  * @param \Drupal\comment\CommentManagerInterface $comment_manager
  *   The comment manager service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
  *   The url generator service.
  * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
  *   The date formatter service.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityStorageInterface $node_storage, EntityStorageInterface $node_type_storage, ModuleHandlerInterface $module_handler, CommentManagerInterface $comment_manager = NULL, LanguageManagerInterface $language_manager, UrlGeneratorInterface $url_generator, DateFormatterInterface $date_formatter)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->moduleHandler = $module_handler;
     $this->nodeStorage = $node_storage;
     $this->nodeTypeStorage = $node_type_storage;
     $this->commentManager = $comment_manager;
     $this->languageManager = $language_manager;
     $this->urlGenerator = $url_generator;
     $this->dateFormatter = $date_formatter;
 }
Ejemplo n.º 7
0
 /**
  * Constructs MediaDevelGenerate class.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin ID for the plugin instance.
  * @param array $plugin_definition
  * @param \Drupal\media_entity\MediaStorageInterface $media_storage
  *   The media storage.
  * @param \Drupal\Core\Entity\EntityStorageInterface $media_bundle_storage
  *   The media bundle storage.
  * @param \Drupal\Core\Entity\EntityStorageInterface $user_storage
  *   The user storage.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
  *   The url generator service.
  * @param \Drupal\Core\Datetime\DateFormatter $date_formatter
  *   The date formatter service.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, MediaStorageInterface $media_storage, EntityStorageInterface $user_storage, EntityStorageInterface $media_bundle_storage, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager, UrlGeneratorInterface $url_generator, DateFormatter $date_formatter)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->moduleHandler = $module_handler;
     $this->mediaStorage = $media_storage;
     $this->mediaBundleStorage = $media_bundle_storage;
     $this->userStorage = $user_storage;
     $this->languageManager = $language_manager;
     $this->urlGenerator = $url_generator;
     $this->dateFormatter = $date_formatter;
 }
Ejemplo n.º 8
0
 /**
  * Constructs a MenuDevelGenerate object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin ID for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager
  *   The menu link plugin manager.
  * @param \Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree
  *   The menu tree service.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MenuLinkManagerInterface $menu_link_manager, MenuLinkTreeInterface $menu_tree)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->menuLinkManager = $menu_link_manager;
     $this->menuLinkTree = $menu_tree;
 }