views_add_contextual_links

views_add_contextual_links(&$render_element, $location, $display_id, array $view_element = NULL) Adds contextual links associated with a view display to a renderable array. This function should be called when a view is being rendered in a particular location and you want to attach the appropriate contextual links (e.g., links for editing the view) to it. The function operates by checking the view's display plugin to see if it has defined any contextual links that are intended to be displaye

ViewExecutable::$current_display

Identifier of the current display. Type: string File core/modules/views/src/ViewExecutable.php, line 180 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public $current_display;

UpdateFetcher::$updateSettings

The update settings Type: \Drupal\Core\Config\Config File core/modules/update/src/UpdateFetcher.php, line 34 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code protected $updateSettings;

hook_ENTITY_TYPE_access

hook_ENTITY_TYPE_access(\Drupal\Core\Entity\EntityInterface $entity, $operation, \Drupal\Core\Session\AccountInterface $account) Control entity operation access for a specific entity type. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to check access to. string $operation: The operation that is to be performed on $entity. \Drupal\Core\Session\AccountInterface $account: The account trying to access the entity. Return value \Drupal\Core\Access\AccessResultInterface The acce

ModerationStateTransition::calculateDependencies

public ModerationStateTransition::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this Overrides ConfigEntityBase::calculateDependencies See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/modules/content_moderation/src/Entity/ModerationStateTransition.php, line 81 Class ModerationStateTransition Defines the Moderation state transition entity. Namespace Drupal\content_moderation\Entity Code public function ca

FormBase::getRouteMatch

protected FormBase::getRouteMatch() Gets the route match. Return value \Drupal\Core\Routing\RouteMatchInterface File core/lib/Drupal/Core/Form/FormBase.php, line 165 Class FormBase Provides a base class for forms. Namespace Drupal\Core\Form Code protected function getRouteMatch() { if (!$this->routeMatch) { $this->routeMatch = \Drupal::routeMatch(); } return $this->routeMatch; }

EntityInterface::url

public EntityInterface::url($rel = 'canonical', $options = array()) Gets the public URL for this entity. Parameters string $rel: The link relationship type, for example: canonical or edit-form. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value string The URL for this entity. Deprecated in Drupal 8.0.0, intended to be removed in Drupal 9.0.0 Please use toUrl() instead. See also \Drupal\Core\Entity\EntityInterface::to

UpdaterFileTransferException

Defines a child class of Drupal\Core\Updater\UpdaterException that indicates a Drupal\Core\FileTransfer\FileTransfer exception. We have to catch Drupal\Core\FileTransfer\FileTransfer exceptions and wrap those in t(), since Drupal\Core\FileTransfer\FileTransfer is so low-level that it doesn't use any Drupal APIs and none of the strings are translated. Hierarchy class \Drupal\Core\Updater\UpdaterException extends \Exceptionclass \Drupal\Core\Updater\UpdaterFileTransferException File core/lib/

FormStateDecoratorBase::getTriggeringElement

public &FormStateDecoratorBase::getTriggeringElement() Gets the form element that triggered submission. Return value array|null The form element that triggered submission, of NULL if there is none. Overrides FormStateInterface::getTriggeringElement File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 379 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function &getTriggeringElement() { return $this->decoratedFor

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