You are here

public function TestViewsLocalTask::setApplicableMenuViews in Drupal 9

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::setApplicableMenuViews()

Sets applicable views result.

File

core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php, line 375
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

public function setApplicableMenuViews($result) {
  $this->result = $result;
}