ShortcutDeleteForm

Builds the shortcut link deletion form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase implements Confir

ShortcutAccessControlHandler::__construct

public ShortcutAccessControlHandler::__construct(EntityTypeInterface $entity_type, ShortcutSetStorageInterface $shortcut_set_storage) Constructs a ShortcutAccessControlHandler object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\shortcut\ShortcutSetStorageInterface $shortcut_set_storage: The shortcut_set storage. Overrides EntityAccessControlHandler::__construct File core/modules/shortcut/src/ShortcutAccessControlHandler.php, line 35 C

ShortcutAccessControlHandler::createInstance

public static ShortcutAccessControlHandler::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Compon

ShortcutAccessControlHandler::checkCreateAccess

protected ShortcutAccessControlHandler::checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) Performs create access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Session\AccountInterface $account: The user for which to check access. array $context: An array of key-value pairs to pass additional context when needed. string|null $entity_bundle: (optional) The bundle of the en

ShortcutAccessControlHandler::checkAccess

protected ShortcutAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user fo

ShortcutAccessControlHandler::$shortcutSetStorage

The shortcut_set storage. Type: \Drupal\shortcut\ShortcutSetStorageInterface File core/modules/shortcut/src/ShortcutAccessControlHandler.php, line 25 Class ShortcutAccessControlHandler Defines the access control handler for the shortcut entity type. Namespace Drupal\shortcut Code protected $shortcutSetStorage;

ShortcutAccessControlHandler

Defines the access control handler for the shortcut entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\shortcut\ShortcutAccessControlHandler implements EntityHandlerInterface See also \Drupal\shortcut\Entity\Shortcut File core/modules/shortcut/src/ShortcutAccessControlHandler.php, line 18 Namespace Dru

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

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

Shortcut::setTitle

public Shortcut::setTitle($link_title) Sets the title of this shortcut. Parameters string $title: The title of this shortcut. Return value \Drupal\shortcut\ShortcutInterface The called shortcut entity. Overrides ShortcutInterface::setTitle File core/modules/shortcut/src/Entity/Shortcut.php, line 62 Class Shortcut Defines the shortcut entity class. Namespace Drupal\shortcut\Entity Code public function setTitle($link_title) { $this->set('title', $link_title); return $this; }