function MenuLinkParent::create
Same name in other branches
- 9 core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php \Drupal\migrate\Plugin\migrate\process\MenuLinkParent::create()
- 10 core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php \Drupal\migrate\Plugin\migrate\process\MenuLinkParent::create()
- 11.x core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php \Drupal\migrate\Plugin\migrate\process\MenuLinkParent::create()
Overrides ContainerFactoryPluginInterface::create
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ process/ MenuLinkParent.php, line 105
Class
- MenuLinkParent
- This plugin figures out menu link parent plugin IDs.
Namespace
Drupal\migrate\Plugin\migrate\processCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) {
$migration_configuration['migration'][] = $migration->id();
return new static($configuration, $plugin_id, $plugin_definition, $container->get('migrate.lookup'), $container->get('plugin.manager.menu.link'), $container->get('entity_type.manager')
->getStorage('menu_link_content'), $migration);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.