ViewUI::toLink

public ViewUI::toLink($text = NULL, $rel = 'edit-form', array $options = []) Generates the HTML for a link to this entity. Parameters string|null $text: (optional) The link text for the anchor tag as a translated string. If NULL, it will use the entity's label. Defaults to NULL. string $rel: (optional) The link relationship type. Defaults to 'canonical'. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value \Drupal\Core\Lin

ViewUI::toUrl

public ViewUI::toUrl($rel = 'edit-form', array $options = []) Gets the URL object for the entity. The entity must have an id already. Content entities usually get their IDs by saving them. URI templates might be set in the links array in an annotation, for example: links = { "canonical" = "/node/{node}", "edit-form" = "/node/{node}/edit", "version-history" = "/node/{node}/revisions" } or specified in a callback function set like: uri_callback = "comment_uri", If the path is not set in

ViewUI::submitItemAdd

public ViewUI::submitItemAdd($form, FormStateInterface $form_state) Submit handler for adding new item(s) to a view. File core/modules/views_ui/src/ViewUI.php, line 425 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function submitItemAdd($form, FormStateInterface $form_state) { $type = $form_state->get('type'); $types = ViewExecutable::getHandlerTypes(); $section = $types[$type]['plural']; $display_id = $form_state->get('display_

ViewUI::trustData

public ViewUI::trustData() Sets that the data should be trusted. If the data is trusted then dependencies will not be calculated on save and schema will not be used to cast the values. Generally this is only used during module and theme installation. Once the config entity has been saved the data will no longer be marked as trusted. This is an optimization for creation of configuration during installation. Return value $this Overrides ConfigEntityInterface::trustData See also \Drupal\Core\Con

ViewUI::standardSubmit

public ViewUI::standardSubmit($form, FormStateInterface $form_state) Basic submit handler applicable to all 'standard' forms. This submit handler determines whether the user wants the submitted changes to apply to the default display or to the current display, and dispatches control appropriately. File core/modules/views_ui/src/ViewUI.php, line 214 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function standardSubmit($form, FormStateInterface

ViewUI::standardCancel

public ViewUI::standardCancel($form, FormStateInterface $form_state) Submit handler for cancel button File core/modules/views_ui/src/ViewUI.php, line 262 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function standardCancel($form, FormStateInterface $form_state) { if (!empty($this->changed) && isset($this->form_cache)) { unset($this->form_cache); $this->cacheSet(); } $form_state->setRedirectUrl($this->u

ViewUI::startQueryCapture

public ViewUI::startQueryCapture() Set up query capturing. \Drupal\Core\Database\Database stores the queries that it runs, if logging is enabled. See also ViewUI::endQueryCapture() File core/modules/views_ui/src/ViewUI.php, line 500 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function startQueryCapture() { Database::startLog('views'); }

ViewUI::setUninstalling

public ViewUI::setUninstalling($isUninstalling) File core/modules/views_ui/src/ViewUI.php, line 189 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function setUninstalling($isUninstalling) { $this->isUninstalling = $isUninstalling; }

ViewUI::status

public ViewUI::status() Returns whether the configuration entity is enabled. Status implementations for configuration entities should follow these general rules: Status does not affect the loading of entities. I.e. Disabling configuration entities should only have UI/access implications. It should only take effect when a 'status' key is explicitly declared in the entity_keys info of a configuration entity's annotation data. Each entity implementation (entity/controller) is responsible for check

ViewUI::setStatus

public ViewUI::setStatus($status) Sets the status of the configuration entity. Parameters bool $status: The status of the configuration entity. Return value $this Overrides ConfigEntityInterface::setStatus File core/modules/views_ui/src/ViewUI.php, line 163 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function setStatus($status) { return $this->storage->setStatus($status); }