ShortcutInterface::getWeight

public ShortcutInterface::getWeight() Returns the weight among shortcuts with the same depth. Return value int The shortcut weight. File core/modules/shortcut/src/ShortcutInterface.php, line 37 Class ShortcutInterface Provides an interface defining a shortcut entity. Namespace Drupal\shortcut Code public function getWeight();

ShortcutInterface

Provides an interface defining a shortcut entity. Hierarchy interface \Drupal\Core\Entity\FieldableEntityInterface; interface \Drupal\Core\Entity\RevisionableInterface; interface \Drupal\Core\TypedData\TranslatableInterfaceinterface \Drupal\Core\Entity\ContentEntityInterface extends \Traversableinterface \Drupal\shortcut\ShortcutInterface File core/modules/shortcut/src/ShortcutInterface.php, line 10 Namespace Drupal\shortcut Members Name Modifiers Type Description Accessible

ShortcutInterface::getUrl

public ShortcutInterface::getUrl() Returns the URL object pointing to the configured route. Return value \Drupal\Core\Url The URL object. File core/modules/shortcut/src/ShortcutInterface.php, line 56 Class ShortcutInterface Provides an interface defining a shortcut entity. Namespace Drupal\shortcut Code public function getUrl();

ShortcutInterface::getTitle

public ShortcutInterface::getTitle() Returns the title of this shortcut. Return value string The title of this shortcut. File core/modules/shortcut/src/ShortcutInterface.php, line 18 Class ShortcutInterface Provides an interface defining a shortcut entity. Namespace Drupal\shortcut Code public function getTitle();

ShortcutForm::$entity

The entity being used by this form. Type: \Drupal\shortcut\ShortcutInterface Overrides EntityForm::$entity File core/modules/shortcut/src/ShortcutForm.php, line 18 Class ShortcutForm Form handler for the shortcut entity forms. Namespace Drupal\shortcut Code protected $entity;

ShortcutForm::save

public ShortcutForm::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 operatio

ShortcutForm

Form handler for the shortcut entity forms. 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\shortcut\ShortcutForm File core/modules/shortcut

ShortcutDeleteForm::getFormId

public ShortcutDeleteForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides EntityForm::getFormId File core/modules/shortcut/src/Form/ShortcutDeleteForm.php, line 16 Class ShortcutDeleteForm Builds the shortcut link deletion form. Namespace Drupal\shortcut\Form Code public function getFormId() { return 'shortcut_confirm_delete'; }

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

ShortcutDeleteForm::getRedirectUrl

protected ShortcutDeleteForm::getRedirectUrl() Returns the URL where the user should be redirected after deletion. Return value \Drupal\Core\Url The redirect URL. Overrides EntityDeleteFormTrait::getRedirectUrl File core/modules/shortcut/src/Form/ShortcutDeleteForm.php, line 32 Class ShortcutDeleteForm Builds the shortcut link deletion form. Namespace Drupal\shortcut\Form Code protected function getRedirectUrl() { return $this->getCancelUrl(); }