function views_enable_view
Same name in other branches
- 9 core/modules/views/views.module \views_enable_view()
- 8.9.x core/modules/views/views.module \views_enable_view()
- 10 core/modules/views/views.module \views_enable_view()
Enables and saves a view.
Parameters
\Drupal\views\Entity\View $view: The View object to disable.
1 call to views_enable_view()
- ModuleTest::testStatusFunctions in core/
modules/ views/ tests/ src/ Kernel/ ModuleTest.php - Tests view enable and disable procedural wrapper functions.
File
-
core/
modules/ views/ views.module, line 319
Code
function views_enable_view(View $view) {
$view->enable()
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.