You are here

protected function TestViewsLocalTask::getApplicableMenuViews in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\TestViewsLocalTask::getApplicableMenuViews()
  2. 9 core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\TestViewsLocalTask::getApplicableMenuViews()

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

array(
  array(
    $view,
    $display_id,
  ),
  array(
    $view,
    $display_id,
  ),
);

Return value

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

Overrides ViewsLocalTask::getApplicableMenuViews

File

core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php, line 384
Contains \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest.

Class

TestViewsLocalTask
Replaces the applicable views call for easier testability.

Namespace

Drupal\Tests\views\Unit\Plugin\Derivative

Code

protected function getApplicableMenuViews() {
  return $this->result;
}