Skip to content
Snippets Groups Projects
Commit f5f925c0 authored by catch's avatar catch
Browse files

Issue #3164120 by dww, benjifisher, quietone: Fix sample code in...

Issue #3164120 by dww, benjifisher, quietone: Fix sample code in MenuLinkParent.php class documentation
parent 574f8617
No related branches found
No related tags found
8 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards,!16Draft: Resolve #2081585 "History storage",!13Resolve #2903456
......@@ -40,14 +40,14 @@
* parent:
* plugin: menu_link_parent
* source:
* - 20
* - management
* - admin/structure
* - plid
* - menu_name
* - parent_link_path
* @endcode
* In this example we first try to look up a menu link item that had an ID '20'
* in the source. If a parent menu item can't be found with this ID, we try to
* determine the parent by a combination of 'management' menu name and
* 'admin/structure' menu link path.
* In this example, first look for a menu link that had an ID defined by 'plid'
* in the source (e.g., '20'). If that fails, try to determine the parent by a
* combination of a menu name (e.g., 'management') and a parent menu link path
* (e.g., 'admin/structure').
*
* @see https://www.drupal.org/docs/8/api/menu-api
* @see \Drupal\migrate\Plugin\MigrateProcessInterface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment