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

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

ViewFormBase::prepareEntity

protected ViewFormBase::prepareEntity() Prepares the entity object before the form is built first. Overrides EntityForm::prepareEntity File core/modules/views_ui/src/ViewFormBase.php, line 47 Class ViewFormBase Base form for Views forms. Namespace Drupal\views_ui Code protected function prepareEntity() { // Determine the displays available for editing. if ($tabs = $this->getDisplayTabs($this->entity)) { if (empty($this->displayID)) { // If a display isn't specifi

ViewFormBase::getDisplayLabel

public ViewFormBase::getDisplayLabel(ViewUI $view, $display_id, $check_changed = TRUE) Placeholder function for overriding $display['display_title']. @todo Remove this function once editing the display title is possible. File core/modules/views_ui/src/ViewFormBase.php, line 157 Class ViewFormBase Base form for Views forms. Namespace Drupal\views_ui Code public function getDisplayLabel(ViewUI $view, $display_id, $check_changed = TRUE) { $display = $view->get('display'); $title =

ViewFormBase::isDefaultDisplayShown

public ViewFormBase::isDefaultDisplayShown(ViewUI $view) Controls whether or not the default display should have its own tab on edit. File core/modules/views_ui/src/ViewFormBase.php, line 142 Class ViewFormBase Base form for Views forms. Namespace Drupal\views_ui Code public function isDefaultDisplayShown(ViewUI $view) { // Always show the default display for advanced users who prefer that mode. $advanced_mode = \Drupal::config('views.settings')->get('ui.show.master_display');

ViewFormBase::init

public ViewFormBase::init(FormStateInterface $form_state) Initialize the form state and the entity before the first form build. Overrides EntityForm::init File core/modules/views_ui/src/ViewFormBase.php, line 25 Class ViewFormBase Base form for Views forms. Namespace Drupal\views_ui Code public function init(FormStateInterface $form_state) { parent::init($form_state); // @todo Remove the need for this. $form_state->loadInclude('views_ui', 'inc', 'admin'); $form_state->se

ViewFormBase::getDisplayTabs

public ViewFormBase::getDisplayTabs(ViewUI $view) Adds tabs for navigating across Displays when editing a View. This function can be called from hook_menu_local_tasks_alter() to implement these tabs as secondary local tasks, or it can be called from elsewhere if having them as secondary local tasks isn't desired. The caller is responsible for setting the active tab's #active property to TRUE. Parameters $display_id: The display_id which is edited on the current request. File core/modules/views

ViewFormBase::$displayID

The name of the display used by the form. Type: string File core/modules/views_ui/src/ViewFormBase.php, line 20 Class ViewFormBase Base form for Views forms. Namespace Drupal\views_ui Code protected $displayID;

ViewFormBase::buildForm

public ViewFormBase::buildForm(array $form, FormStateInterface $form_state, $display_id = NULL) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides EntityForm::buildForm File core/modules/views_ui/src/ViewFormBase.php, line 36 Class ViewFormBase Base form for Views forms. Namespace Drupal\views_ui Code publi