class TestViewsLocalTask
Same name in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\TestViewsLocalTask
- 8.9.x core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\TestViewsLocalTask
- 10 core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\TestViewsLocalTask
Replaces the applicable views call for easier testability.
Hierarchy
- class \Drupal\Tests\views\Unit\Plugin\Derivative\TestViewsLocalTask extends \Drupal\views\Plugin\Derivative\ViewsLocalTask
Expanded class hierarchy of TestViewsLocalTask
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ Derivative/ ViewsLocalTaskTest.php, line 384
Namespace
Drupal\Tests\views\Unit\Plugin\DerivativeView source
class TestViewsLocalTask extends ViewsLocalTask {
protected $result;
/**
* Sets applicable views result.
*/
public function setApplicableMenuViews($result) : void {
$this->result = $result;
}
/**
* {@inheritdoc}
*/
protected function getApplicableMenuViews() {
return $this->result;
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.