ShortcutSetStorage::assignUser

public ShortcutSetStorage::assignUser(ShortcutSetInterface $shortcut_set, $account) Assigns a user to a particular shortcut set. Parameters \Drupal\shortcut\ShortcutSetInterface $shortcut_set: An object representing the shortcut set. $account: A user account that will be assigned to use the set. Overrides ShortcutSetStorageInterface::assignUser File core/modules/shortcut/src/ShortcutSetStorage.php, line 73 Class ShortcutSetStorage Defines a storage for shortcut_set entities. Namespace

ShortcutSetStorage

Defines a storage for shortcut_set entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterfaceclass \Drupal\shortcut\ShortcutSetStorage implements ShortcutSetStorageInterface File core/modules/shortcut/sr

ShortcutSetListBuilder::buildHeader

public ShortcutSetListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/shortcut/src/ShortcutSetListBuilder.php, line 18 Class ShortcutSetListBuilder Defines a class to build a listing of shortcut set entities. Namespace Drupal\shortcut Code public function buildHeader() { $header['name'

ShortcutSetListBuilder::getDefaultOperations

public ShortcutSetListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides ConfigEntityListBuilder::getDefaultOperations File core/modules/shortcut/src/ShortcutSetListBuilder.php, line 26 Class ShortcutSetListBuilder Defines a class to build a listing of

ShortcutSetListBuilder::buildRow

public ShortcutSetListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/shortcut/src/ShortcutSetListBuilder.php, line 43 Class ShortcutSetListBuilder Defines a class to bu

ShortcutSetListBuilder

Defines a class to build a listing of shortcut set entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\shortcut\ShortcutSetListBuilder See also \Drupal\shortcut\Entity\ShortcutSet File core/modules/shortcut/src/ShortcutSetListBuilder.php, line 13

ShortcutSetInterface

Provides an interface defining a shortcut set entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\shortcut\ShortcutSetInterface File core/modules/shortcut/src/ShortcutSetInterface.php, line 10 Namespace Drupal\shortcut Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value

ShortcutSetInterface::resetLinkWeights

public ShortcutSetInterface::resetLinkWeights() Resets the link weights in a shortcut set to match their current order. This function can be used, for example, when a new shortcut link is added to the set. If the link is added to the end of the array and this function is called, it will force that link to display at the end of the list. Return value \Drupal\shortcut\ShortcutSetInterface The shortcut set. File core/modules/shortcut/src/ShortcutSetInterface.php, line 22 Class ShortcutSetInte

ShortcutSetInterface::getShortcuts

public ShortcutSetInterface::getShortcuts() Returns all the shortcuts from a shortcut set sorted correctly. Return value \Drupal\shortcut\ShortcutInterface[] An array of shortcut entities. File core/modules/shortcut/src/ShortcutSetInterface.php, line 30 Class ShortcutSetInterface Provides an interface defining a shortcut set entity. Namespace Drupal\shortcut Code public function getShortcuts();

ShortcutSetForm::save

public ShortcutSetForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the opera