View::preSave

public View::preSave(EntityStorageInterface $storage) Acts on an entity before the presave hook is invoked. Used before the entity is saved and before invoking the presave hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. This is different from its counterpart in the Field API, FieldItemListInterface::preSave(), which is fired on all field translations automatic

View::__sleep

public View::__sleep() Overrides ConfigEntityBase::__sleep File core/modules/views/src/Entity/View.php, line 456 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function __sleep() { $keys = parent::__sleep(); unset($keys[array_search('executable', $keys)]); return $keys; }

ViewAccessControlHandler

Defines the access control handler for the view entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\views\ViewAccessControlHandler See also \Drupal\views\Entity\View File core/modules/views/src/ViewAccessControlHandler.php, line 15 Namespace Drupal\views Members Name Modifiers Type Description

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

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

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