function StyleTableUnitTest::prepareView
Same name in other branches
- 9 core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php \Drupal\Tests\views\Kernel\Plugin\StyleTableUnitTest::prepareView()
- 8.9.x core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php \Drupal\Tests\views\Kernel\Plugin\StyleTableUnitTest::prepareView()
- 10 core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php \Drupal\Tests\views\Kernel\Plugin\StyleTableUnitTest::prepareView()
Prepares a view executable by initializing everything which is needed.
Parameters
\Drupal\views\ViewExecutable $view: The executable to prepare.
1 call to StyleTableUnitTest::prepareView()
- StyleTableUnitTest::testTable in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ StyleTableUnitTest.php - Tests the table style.
File
-
core/
modules/ views/ tests/ src/ Kernel/ Plugin/ StyleTableUnitTest.php, line 151
Class
- StyleTableUnitTest
- Tests the table style plugin.
Namespace
Drupal\Tests\views\Kernel\PluginCode
protected function prepareView(ViewExecutable $view) : void {
$view->setDisplay();
$view->initStyle();
$view->initHandlers();
$view->initQuery();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.