function MenuLinkParent::create

Same name in other branches
  1. 8.9.x core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php \Drupal\migrate\Plugin\migrate\process\MenuLinkParent::create()
  2. 10 core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php \Drupal\migrate\Plugin\migrate\process\MenuLinkParent::create()
  3. 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 119

Class

MenuLinkParent
Determines the parent of a menu link.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) {
    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.