You are here

public static function Views::executableFactory in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Views.php \Drupal\views\Views::executableFactory()
  2. 9 core/modules/views/src/Views.php \Drupal\views\Views::executableFactory()

Returns the view executable factory service.

Return value

\Drupal\views\ViewExecutableFactory Returns a views executable factory.

4 calls to Views::executableFactory()
AccessRoleTest::testAccessRole in core/modules/user/tests/src/Functional/Views/AccessRoleTest.php
Tests role access plugin.
View::getExecutable in core/modules/views/src/Entity/View.php
Gets an executable instance for this view.
View::preDelete in core/modules/views/src/Entity/View.php
Acts on entities before they are deleted and before hooks are invoked.
views_view_delete in core/modules/views/views.module
Implements hook_ENTITY_TYPE_delete().

File

core/modules/views/src/Views.php, line 77

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

public static function executableFactory() {
  return \Drupal::service('views.executable');
}