ViewPageController

Defines a page controller to execute and render a view. Hierarchy class \Drupal\views\Routing\ViewPageController File core/modules/views/src/Routing/ViewPageController.php, line 11 Namespace Drupal\views\Routing Members Name Modifiers Type Description ViewPageController::handle public function Handler a response for a given view and display.

ViewListBuilder::__construct

public ViewListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, PluginManagerInterface $display_manager) Constructs a new ViewListBuilder object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityStorageInterface $storage.: The entity storage class. \Drupal\Component\Plugin\PluginManagerInterface $display_manager: The views display plugin manager to use. Overrides EntityListBuilder::__co

ViewListBuilder::getDisplaysList

protected ViewListBuilder::getDisplaysList(EntityInterface $view) Gets a list of displays included in the view. Parameters \Drupal\Core\Entity\EntityInterface $view: The view entity instance to get a list of displays for. Return value array An array of display types that this view includes. File core/modules/views_ui/src/ViewListBuilder.php, line 243 Class ViewListBuilder Defines a class to build a listing of view entities. Namespace Drupal\views_ui Code protected function getDisplay

ViewListBuilder::render

public ViewListBuilder::render() Builds the entity listing as renderable array for table.html.twig. @todo Add a link to add a new item to the #empty text. Overrides EntityListBuilder::render File core/modules/views_ui/src/ViewListBuilder.php, line 180 Class ViewListBuilder Defines a class to build a listing of view entities. Namespace Drupal\views_ui Code public function render() { $entities = $this->load(); $list['#type'] = 'container'; $list['#attributes']['id'] = 'views-en

ViewListBuilder::load

public ViewListBuilder::load() Loads entities of this type from storage for listing. This allows the implementation to manipulate the listing, like filtering or sorting the loaded entities. Return value \Drupal\Core\Entity\EntityInterface[] An array of entities implementing \Drupal\Core\Entity\EntityInterface. Overrides ConfigEntityListBuilder::load File core/modules/views_ui/src/ViewListBuilder.php, line 67 Class ViewListBuilder Defines a class to build a listing of view entities. Name

ViewListBuilder::getDefaultOperations

public ViewListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides ConfigEntityListBuilder::getDefaultOperations File core/modules/views_ui/src/ViewListBuilder.php, line 154 Class ViewListBuilder Defines a class to build a listing of view entities. Na

ViewListBuilder::getDisplayPaths

protected ViewListBuilder::getDisplayPaths(EntityInterface $view) Gets a list of paths assigned to the view. Parameters \Drupal\Core\Entity\EntityInterface $view: The view entity. Return value array An array of paths for this view. File core/modules/views_ui/src/ViewListBuilder.php, line 267 Class ViewListBuilder Defines a class to build a listing of view entities. Namespace Drupal\views_ui Code protected function getDisplayPaths(EntityInterface $view) { $all_paths = array(); $ex

ViewListBuilder::createInstance

public static ViewListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dependenc

ViewListBuilder::buildHeader

public ViewListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/views_ui/src/ViewListBuilder.php, line 126 Class ViewListBuilder Defines a class to build a listing of view entities. Namespace Drupal\views_ui Code public function buildHeader() { return array( 'view_name' => array(

ViewListBuilder::$displayManager

The views display plugin manager to use. Type: \Drupal\Component\Plugin\PluginManagerInterface File core/modules/views_ui/src/ViewListBuilder.php, line 25 Class ViewListBuilder Defines a class to build a listing of view entities. Namespace Drupal\views_ui Code protected $displayManager;