Skip to content
Snippets Groups Projects

Resolve #2762131 "Generalize menulinkadd"

1 unresolved thread

Closes #2762131

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
  • added 1 commit

    • a1ae77ed - Drop constructor docs and use property promotion in LocalActionWithDestination

    Compare with previous version

  • added 2 commits

    • def1065e - Doc fixes to MenuLinkAdd
    • 6b3f0774 - Revert back to ::get() vs ::getAsArray()

    Compare with previous version

  • Tobias Zimmermann resolved all threads

    resolved all threads

  • Alex Pott added 1 commit

    added 1 commit

    Compare with previous version

  • 28 ];
    29
    30 /**
    31 * Tests \Drupal\menu_ui\Plugin\Menu\LocalAction\MenuLinkAdd deprecation.
    32 */
    33 public function testDeprecation(): void {
    34 /** @var \Drupal\Core\Menu\LocalActionManagerInterface $local_action_manager */
    35 $local_action_manager = $this->container->get('plugin.manager.menu.local_action');
    36
    37 $this->expectDeprecation('Drupal\menu_ui\Plugin\Menu\LocalAction\MenuLinkAdd is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Menu\LocalActionWithDestination instead. See https://www.drupal.org/node/3490245');
    38 $instance = $local_action_manager->createInstance('entity.menu.add_link_form_deprecated');
    39 $this->assertInstanceOf(MenuLinkAdd::class, $instance);
    40 }
    41
    42 /**
    43 * Tests deprecated plugin does not trigger deprecation unless used.
    Please register or sign in to reply
    Loading