public function MenuLinkParent::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php \Drupal\migrate\Plugin\migrate\process\MenuLinkParent::__construct()
Constructs a MenuLinkParent 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\migrate\MigrateLookupInterface $migrate_lookup: The migrate lookup service.
\Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager.
\Drupal\Core\Entity\EntityStorageInterface $menu_link_storage: The menu link storage object.
\Drupal\migrate\Plugin\MigrationInterface $migration: The currently running migration.
Overrides PluginBase::__construct
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ process/ MenuLinkParent.php, line 107
Class
- MenuLinkParent
- Determines the parent of a menu link.
Namespace
Drupal\migrate\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrateLookupInterface $migrate_lookup, MenuLinkManagerInterface $menu_link_manager, EntityStorageInterface $menu_link_storage, MigrationInterface $migration) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->migration = $migration;
$this->migrateLookup = $migrate_lookup;
$this->menuLinkManager = $menu_link_manager;
$this->menuLinkStorage = $menu_link_storage;
}