SwitchShortcutSet::create

public static SwitchShortcutSet::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servic

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::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::$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::$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;

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

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

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();