function TestViewsLocalTask::getApplicableMenuViews

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

Overrides ViewsLocalTask::getApplicableMenuViews

File

core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php, line 382

Class

TestViewsLocalTask
Replaces the applicable views call for easier testability.

Namespace

Drupal\Tests\views\Unit\Plugin\Derivative

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.