Drupal 8  8.0.2
SwitchShortcutSet Class Reference
Inheritance diagram for SwitchShortcutSet:

Public Member Functions

 __construct (ShortcutSetStorageInterface $shortcut_set_storage)
 getFormId ()
 buildForm (array $form, FormStateInterface $form_state, UserInterface $user=NULL)
 exists ($id)
 validateForm (array &$form, FormStateInterface $form_state)
 submitForm (array &$form, FormStateInterface $form_state)
 checkAccess (UserInterface $user=NULL)

Static Public Member Functions

static create (ContainerInterface $container)

Protected Attributes


Detailed Description

Builds the shortcut set switch form.

Constructor & Destructor Documentation

__construct ( ShortcutSetStorageInterface  $shortcut_set_storage)

Constructs a SwitchShortcutSet object.

\Drupal\shortcut\ShortcutSetStorageInterface$shortcut_set_storageThe shortcut set storage.

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state,
UserInterface  $user = NULL 


References Drupal\currentUser(), and t().

Here is the call graph for this function:

checkAccess ( UserInterface  $user = NULL)

Checks access for the shortcut set switch form.

\Drupal\user\UserInterface$user(optional) The owner of the shortcut set.
The access result.
static create ( ContainerInterface  $container)


exists (   $id)

Determines if a shortcut set exists already.

string$idThe set ID to check.
bool TRUE if the shortcut set exists, FALSE otherwise.
getFormId ( )


submitForm ( array &  $form,
FormStateInterface  $form_state 


References Drupal\currentUser(), t(), and Drupal\url().

Here is the call graph for this function:

validateForm ( array &  $form,
FormStateInterface  $form_state 


References t().

Here is the call graph for this function:

The documentation for this class was generated from the following file: