protected function EntityPagerTest::updateExampleView in Entity Pager 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/EntityPagerTest.php \Drupal\Tests\entity_pager\Functional\EntityPagerTest::updateExampleView()
Update style settings for the example view.
Parameters
array $options: Style options to update.
Return value
\Drupal\views\ViewExecutable The updated view executable.
3 calls to EntityPagerTest::updateExampleView()
- EntityPagerTest::testAllLink in tests/
src/ Functional/ EntityPagerTest.php - Tests all link.
- EntityPagerTest::testPagingLinks in tests/
src/ Functional/ EntityPagerTest.php - Tests paging links.
- EntityPagerTest::testsCount in tests/
src/ Functional/ EntityPagerTest.php - Tests the count markup.
File
- tests/
src/ Functional/ EntityPagerTest.php, line 299
Class
- EntityPagerTest
- Tests the entity pager view style.
Namespace
Drupal\Tests\entity_pager\FunctionalCode
protected function updateExampleView(array $options) {
$view = Views::getView('entity_pager_example');
$display =& $view->storage
->getDisplay('default');
$display['display_options']['style']['options'] = $options + $display['display_options']['style']['options'];
$view
->save();
return $view;
}