Shortcut::sort

public static Shortcut::sort(ShortcutInterface $a, ShortcutInterface $b) Sort shortcut objects. Callback for uasort(). Parameters \Drupal\shortcut\ShortcutInterface $a: First item for comparison. \Drupal\shortcut\ShortcutInterface $b: Second item for comparison. Return value int The comparison result for uasort(). File core/modules/shortcut/src/Entity/Shortcut.php, line 175 Class Shortcut Defines the shortcut entity class. Namespace Drupal\shortcut\Entity Code public static function

Shortcut::getCacheTagsToInvalidate

public Shortcut::getCacheTagsToInvalidate() Returns the cache tags that should be used to invalidate caches. This will not return additional cache tags added through addCacheTags(). Return value string[] Set of cache tags. Overrides Entity::getCacheTagsToInvalidate See also \Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheTags() \Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags() File core/modules/shortcut/src/Entity/Shortcut.php, line 158 Class Shortcut Defi

Shortcut::getWeight

public Shortcut::getWeight() Returns the weight among shortcuts with the same depth. Return value int The shortcut weight. Overrides ShortcutInterface::getWeight File core/modules/shortcut/src/Entity/Shortcut.php, line 70 Class Shortcut Defines the shortcut entity class. Namespace Drupal\shortcut\Entity Code public function getWeight() { return $this->get('weight')->value; }

Shortcut::baseFieldDefinitions

public static Shortcut::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that

Shortcut::getUrl

public Shortcut::getUrl() Returns the URL object pointing to the configured route. Return value \Drupal\Core\Url The URL object. Overrides ShortcutInterface::getUrl File core/modules/shortcut/src/Entity/Shortcut.php, line 85 Class Shortcut Defines the shortcut entity class. Namespace Drupal\shortcut\Entity Code public function getUrl() { return $this->link->first()->getUrl(); }

Shortcut::getTitle

public Shortcut::getTitle() Returns the title of this shortcut. Return value string The title of this shortcut. Overrides ShortcutInterface::getTitle File core/modules/shortcut/src/Entity/Shortcut.php, line 55 Class Shortcut Defines the shortcut entity class. Namespace Drupal\shortcut\Entity Code public function getTitle() { return $this->get('title')->value; }

Shortcut

Defines the shortcut entity class. @property \Drupal\link\LinkItemInterface link Plugin annotation @ContentEntityType( id = "shortcut", label = @Translation("Shortcut link"), handlers = { "access" = "Drupal\shortcut\ShortcutAccessControlHandler", "form" = { "default" = "Drupal\shortcut\ShortcutForm", "add" = "Drupal\shortcut\ShortcutForm", "edit" = "Drupal\shortcut\ShortcutForm", "delete" = "Drupal\shortcut\Form\ShortcutDeleteForm" }, "translation"

shortcut.module

Allows users to manage customizable lists of shortcut links. File core/modules/shortcut/shortcut.module Functions Name Description shortcut_current_displayed_set Returns the current displayed shortcut set for the provided user account. shortcut_default_set Returns the default shortcut set for a given user account. shortcut_help Implements hook_help(). shortcut_preprocess_block Implements hook_preprocess_HOOK() for block templates. shortcut_preprocess_page_title Impleme

SharedTempStoreFactory::__construct

SharedTempStoreFactory::__construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lock_backend, RequestStack $request_stack, $expire = 604800) Constructs a Drupal\user\SharedTempStoreFactory object. Parameters \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface $storage_factory: The key/value store factory. \Drupal\Core\Lock\LockBackendInterface $lock_backend: The lock object used for this data. \Symfony\Component\HttpFoundation\RequestStack $request_stack:

SharedTempStoreFactory::$lockBackend

The lock object used for this data. Type: \Drupal\Core\Lock\LockBackendInterface $lockBackend File core/modules/user/src/SharedTempStoreFactory.php, line 26 Class SharedTempStoreFactory Creates a shared temporary storage for a collection. Namespace Drupal\user Code protected $lockBackend;