ViewListBuilder

Defines a class to build a listing of view entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\views_ui\ViewListBuilder See also \Drupal\views\Entity\View File core/modules/views_ui/src/ViewListBuilder.php, line 18 Namespace Drupal\views_ui M

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;

ViewListBuilder::$limit

The number of entities to list per page, or FALSE to list all entities. For example, set this to FALSE if the list uses client-side filters that require all entities to be listed (like the views overview). Type: int|false Overrides EntityListBuilder::$limit File core/modules/views_ui/src/ViewListBuilder.php, line 30 Class ViewListBuilder Defines a class to build a listing of view entities. Namespace Drupal\views_ui Code protected $limit;

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::buildRow

public ViewListBuilder::buildRow(EntityInterface $view) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/views_ui/src/ViewListBuilder.php, line 86 Class ViewListBuilder Defines a class to build a listing of view e

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::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::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::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