quickedit_entity_view_alter

quickedit_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisplayInterface $display) Implements hook_entity_view_alter(). File core/modules/quickedit/quickedit.module, line 155 Provides in-place content editing functionality for fields. Code function quickedit_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisplayInterface $display) { $build['#cache']['contexts'][] = 'user.permissions'; if (!\Drupal::currentUser()->hasPermission('access in-place edi

Block::$admin_label

The administrative label of the block. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/Block/Annotation/Block.php, line 30 Class Block Defines a Block annotation object. Namespace Drupal\Core\Block\Annotation Code public $admin_label = '';

RouteProvider::getSubscribedEvents

static RouteProvider::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array('eventN

ViewsExposedForm::$short_title

(optional) The short title used in the views UI. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/modules/views/src/Annotation/ViewsExposedForm.php, line 40 Class ViewsExposedForm Defines a Plugin annotation object for views exposed form plugins. Namespace Drupal\views\Annotation Code public $short_title = '';

Cache::mergeMaxAges

public static Cache::mergeMaxAges($a = Cache::PERMANENT, $b = Cache::PERMANENT) Merges max-age values (expressed in seconds), finds the lowest max-age. Ensures infinite max-age (Cache::PERMANENT) is taken into account. Parameters int $a: Max age value to merge. int $b: Max age value to merge. Return value int The minimum max-age value. File core/lib/Drupal/Core/Cache/Cache.php, line 77 Class Cache Helper methods for cache. Namespace Drupal\Core\Cache Code public static function merge

ViewUI::hasLinkTemplate

public ViewUI::hasLinkTemplate($key) Indicates if a link template exists for a given key. Parameters string $key: The link type. Return value bool TRUE if the link template exists, FALSE otherwise. Overrides EntityInterface::hasLinkTemplate File core/modules/views_ui/src/ViewUI.php, line 1177 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function hasLinkTemplate($key) { return $this->storage->hasLinkTemplate($key); }

SharedTempStoreFactory

Creates a shared temporary storage for a collection. Hierarchy class \Drupal\user\SharedTempStoreFactory File core/modules/user/src/SharedTempStoreFactory.php, line 12 Namespace Drupal\user Members Name Modifiers Type Description SharedTempStoreFactory::$expire protected property The time to live for items in seconds. SharedTempStoreFactory::$lockBackend protected property The lock object used for this data. SharedTempStoreFactory::$requestStack protected p

CacheCollector::has

public CacheCollector::has($key) Returns whether data exists for this key. Parameters string $key: Key that identifies the data. Overrides CacheCollectorInterface::has File core/lib/Drupal/Core/Cache/CacheCollector.php, line 133 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code public function has($key) { // Make sure the value is loaded. $this->get($key); return isset($this->storage[$key]) || array_key_exists($key, $

language_negotiation_url_domains

language_negotiation_url_domains() Reads language domains. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal::config('language.negotiation')->get('url.domains') instead. File core/modules/language/language.module, line 305 Add language handling functionality to Drupal. Code function language_negotiation_url_domains() { return \Drupal::config('language.negotiation')->get('url.domains'); }

AssetResolver::getLibrariesToLoad

protected AssetResolver::getLibrariesToLoad(AttachedAssetsInterface $assets) Returns the libraries that need to be loaded. For example, with core/a depending on core/c and core/b on core/d: $assets = new AttachedAssets(); $assets->setLibraries(['core/a', 'core/b', 'core/c']); $assets->setAlreadyLoadedLibraries(['core/c']); $resolver->getLibrariesToLoad($assets) === ['core/a', 'core/b', 'core/d'] Parameters \Drupal\Core\Asset\AttachedAssetsInterface $assets: The assets attached to the