You are here

public static function ViewUI::load in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::load()
  2. 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::load()

Loads an entity.

Parameters

mixed $id: The id of the entity to load.

Return value

static|null The entity object or NULL if there is no entity with the given ID.

Overrides EntityInterface::load

File

core/modules/views_ui/src/ViewUI.php, line 962

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public static function load($id) {
  return View::load($id);
}