protected function TestViewsLocalTask::getApplicableMenuViews in Drupal 9
Same name and namespace in other branches
- 8 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 382 - Contains \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest.
Class
- TestViewsLocalTask
- Replaces the applicable views call for easier testability.
Namespace
Drupal\Tests\views\Unit\Plugin\DerivativeCode
protected function getApplicableMenuViews() {
return $this->result;
}