Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By damiankloip on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0.x-beta13
Issue links:
Description:
ViewExecutable::getMenuLinks
has been removed. This was dependent on the display, and should not be the responsibility of the executable class itself.
There is now a new Drupal\views\Plugin\views\display\DisplayMenuInterface
which is implemented in \Drupal\views\Plugin\views\display\PathPluginBase
to achieve the same.
This interface can now be checked for instead, E.g.:
if (($display instanceof DisplayMenuInterface) && ($result = $display->getMenuLinks())) {
// ...
}
Impacts:
Module developers