ViewExecutableFactory::get

public ViewExecutableFactory::get(ViewEntityInterface $view) Instantiates a ViewExecutable class. Parameters \Drupal\views\ViewEntityInterface $view: A view entity instance. Return value \Drupal\views\ViewExecutable A ViewExecutable instance. File core/modules/views/src/ViewExecutableFactory.php, line 70 Class ViewExecutableFactory Defines the cache backend factory. Namespace Drupal\views Code public function get(ViewEntityInterface $view) { $view = new ViewExecutable($view, $this-

ViewExecutableFactory::__construct

public ViewExecutableFactory::__construct(AccountInterface $user, RequestStack $request_stack, ViewsData $views_data, RouteProviderInterface $route_provider) Constructs a new ViewExecutableFactory Parameters \Drupal\Core\Session\AccountInterface $user: The current user. \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. \Drupal\views\ViewsData $views_data: The views data. \Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider. File core/m

ViewFormBase

Base form for Views forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\views_ui\ViewFormBase File core/modules/views_ui/src/ViewFormBase.php, line 13 Namespace Drupal\views_ui Members Name Modifiers Type D

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

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