SwitchShortcutSet::checkAccess

public SwitchShortcutSet::checkAccess(UserInterface $user = NULL) Checks access for the shortcut set switch form. Parameters \Drupal\user\UserInterface $user: (optional) The owner of the shortcut set. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 223 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public function checkAccess(UserInterface $user

SwitchShortcutSet::$user

The account the shortcut set is for. Type: \Drupal\user\UserInterface File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 22 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code protected $user;

SwitchShortcutSet::exists

public SwitchShortcutSet::exists($id) Determines if a shortcut set exists already. Parameters string $id: The set ID to check. Return value bool TRUE if the shortcut set exists, FALSE otherwise. File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 148 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public function exists($id) { return (bool) $this->shortcutSetStorage->getQuery() ->condition('id', $id) ->

SwitchShortcutSet::buildForm

public SwitchShortcutSet::buildForm(array $form, FormStateInterface $form_state, UserInterface $user = NULL) Form constructor. 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 array The form structure. Overrides FormInterface::buildForm File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 60 Class SwitchShortcutSet Builds the shortcut set switch form.

SwitchShortcutSet

Builds the shortcut set switch form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\shortcut\Form\SwitchShortcutSet File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 15 Namespace Drupal\shortcut\Form Members Name Modifiers Type Description DependencySerializat

SwitchShortcutSet::$shortcutSetStorage

The shortcut set storage. Type: \Drupal\shortcut\ShortcutSetStorageInterface File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 29 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code protected $shortcutSetStorage;

Submit::getInfo

public Submit::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides Button::getInfo File core/lib/Drupal/Core/Render/Element/Submit.php, line 34 Class Submit Provides a form submit button. Namespace Drupal\Core\Render\Element Code public function getInfo() { return

SuspendQueueException

Exception class to throw to indicate that a cron queue should be skipped. An implementation of \Drupal\Core\Queue\QueueWorkerInterface::processItem() throws this class of exception to indicate that processing of the whole queue should be skipped. This should be thrown rather than a normal Exception if the problem encountered by the queue worker is such that it can be deduced that workers of subsequent items would encounter it too. For example, if a remote site that the queue worker depends on a

Submit

Provides a form submit button. Submit buttons are processed the same as regular buttons, except they trigger the form's submit handler. Properties: #submit: Specifies an alternate callback for form submission when the submit button is pressed. Use '::methodName' format or an array containing the object and method name (for example, [ $this, 'methodName'] ). #value: The text to be shown on the button. Usage Example: $form['actions']['submit'] = array( '#type' => 'submit', '#value' =&g

SubformStateInterface::getCompleteFormState

public SubformStateInterface::getCompleteFormState() Gets the complete form state. Return value \Drupal\Core\Form\FormStateInterface File core/lib/Drupal/Core/Form/SubformStateInterface.php, line 49 Class SubformStateInterface Stores information about the state of a subform. Namespace Drupal\Core\Form Code public function getCompleteFormState();