function StyleTableUnitTest::prepareView
Same name in other branches
- 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()
- 11.x 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 149
Class
- StyleTableUnitTest
- Tests the table style plugin.
Namespace
Drupal\Tests\views\Kernel\PluginCode
protected function prepareView(ViewExecutable $view) {
$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.