Process plugin: menu_link_parent

Last updated on
7 February 2017

The menu_link_parent source plugin figures out menu link parent plugin IDs.

Example:

process:
  parent:
    plugin: menu_link_parent
    source:
      - plid
      - menu_name
      - parent_link_path

The source expects three values, in a non-keyed array:

  1. plid - The parent link ID (plid) is the mlid of the link above in the hierarchy, or zero if the link is at the top level in its menu.
    The plid should refer to the source parent link ID. You do not need to convert the plid to the destination parent ID (for instance, by using the migration process plugin); the menu_link_parent plugin will take care of that, if it is necessary.
  2. menu_name - The menu name. All links with the same menu name (such as 'navigation') are part of the same menu.
  3. parent_link_path - The Drupal path or external path that the parent link points to.

Help improve this page

Page status: No known problems

You can: