Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsLocalTask.php

function ViewsLocalTask::getApplicableMenuViews

Return a list of all views and display IDs that have a menu entry.

[
    [
        $view,
        $display_id,
    ],
    [
        $view,
        $display_id,
    ],
];

Return value

array A list of arrays containing the $view and $display_id.

2 calls to ViewsLocalTask::getApplicableMenuViews()
ViewsLocalTask::alterLocalTasks in core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
Alters base_route and parent_id into the views local tasks.
ViewsLocalTask::getDerivativeDefinitions in core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
Gets the definition of all derivatives of a base plugin.

File

core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php, line 162

Class

ViewsLocalTask
Provides local task definitions for all views configured as local tasks.

Namespace

Drupal\views\Plugin\Derivative

Code

protected function getApplicableMenuViews() {
    return Views::getApplicableViews('uses_menu_links');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal