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

public ViewUI::toArray() Gets an array of all property values. Return value mixed[] An array of property values, keyed by property name. Overrides EntityInterface::toArray File core/modules/views_ui/src/ViewUI.php, line 1034 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function toArray() { return $this->storage->toArray(); }

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

public ViewUI::setThirdPartySetting($module, $key, $value) Sets the value of a third-party setting. Parameters string $module: The module providing the third-party setting. string $key: The setting name. mixed $value: The setting value. Return value $this Overrides ThirdPartySettingsInterface::setThirdPartySetting File core/modules/views_ui/src/ViewUI.php, line 1269 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function setThirdPartySetting(