Skip to content
Snippets Groups Projects

Adding preview editable areas local tasks into the navigation module.

2 unresolved threads

Closes #3465295

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
131 131 });
132 132 },
133 133 };
134
135 /**
136 * Toggle contextual menu links.
137 *
138 * @type {Drupal~behavior}
139 *
140 * @prop {Drupal~behaviorAttach} attach
141 * Attach event into the navigation contextual link.
142 */
143 Drupal.behaviors.toggleContextualLinks = {
144 attach: () => {
  • added 1 commit

    Compare with previous version

  • 216 219 $info['layout_builder']['#pre_render'][] = [RenderCallbacks::class, 'alterLayoutBuilder'];
    217 220 }
    218 221 }
    222
    223 /**
    224 * Implements hook_menu_local_tasks_alter().
    225 */
    226 function navigation_menu_local_tasks_alter(&$data, $route_name, RefinableCacheableDependencyInterface &$cacheability): void {
    227 if ($route_name === 'entity.node.canonical' && !empty($data['tabs'][0])) {
  • Chris Green added 162 commits

    added 162 commits

    Compare with previous version

  • Chris Green added 1 commit

    added 1 commit

    Compare with previous version

  • Chris Green added 1 commit

    added 1 commit

    Compare with previous version

  • Chris Green added 1 commit

    added 1 commit

    • f7d72af2 - Expand which routes the new links appear on

    Compare with previous version

  • Please register or sign in to reply
    Loading