ViewAjaxController::$currentPath

The current path. Type: \Drupal\Core\Path\CurrentPathStack File core/modules/views/src/Controller/ViewAjaxController.php, line 56 Class ViewAjaxController Defines a controller to load a view via AJAX. Namespace Drupal\views\Controller Code protected $currentPath;

ViewAddForm::submitForm

public ViewAddForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless the e

ViewAddForm::form

public ViewAddForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/views_ui/src/ViewAddForm.php, line 52 Class ViewAddForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function form(array $form, FormStateInterface $form_state) { $form['#attached']['library'][] = 'v

ViewAddForm::cancel

public ViewAddForm::cancel(array $form, FormStateInterface $form_state) Form submission handler for the 'cancel' action. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. File core/modules/views_ui/src/ViewAddForm.php, line 202 Class ViewAddForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function cancel(array $form, FormStateInterface $f

ViewAddForm::create

public static ViewAddForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service cont

ViewAddForm::prepareEntity

protected ViewAddForm::prepareEntity() Prepares the entity object before the form is built first. Overrides ViewFormBase::prepareEntity File core/modules/views_ui/src/ViewAddForm.php, line 45 Class ViewAddForm Form controller for the Views edit form. Namespace Drupal\views_ui Code protected function prepareEntity() { // Do not prepare the entity while it is being added. }

ViewAddForm

Form controller for the Views edit form. 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\ViewFormBaseclass \Drupal\views_ui\ViewAddForm File core/modules/views_ui/src/ViewAddForm.php, line 14 Namespace Drupal

ViewAddForm::actions

protected ViewAddForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/views_ui/src/ViewAddForm.php, line 143 Class ViewAddForm Form controller for the Views edit form. Namespace Drupal\views_ui Code protected function actions(array $form, FormStateInterface $form_state) { $ac

ViewAddForm::$wizardManager

The wizard plugin manager. Type: \Drupal\views\Plugin\ViewsPluginManager File core/modules/views_ui/src/ViewAddForm.php, line 21 Class ViewAddForm Form controller for the Views edit form. Namespace Drupal\views_ui Code protected $wizardManager;

ViewAccessControlHandler::checkAccess

public ViewAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for which