ShortcutSetForm

Form handler for the shortcut set entity edit 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\BundleEntityFormBaseclass \Drupal\shortcut\ShortcutSetForm File core/modules/shortcut/src/ShortcutSetForm.ph

ShortcutSetForm::form

public ShortcutSetForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/shortcut/src/ShortcutSetForm.php, line 16 Class ShortcutSetForm Form handler for the shortcut set entity edit forms. Namespace Drupal\shortcut Code public function form(array $form, FormStateInterface $form_state) { $form = pare

ShortcutSetDeleteForm::create

public static ShortcutSetDeleteForm::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 se

ShortcutSetDeleteForm::buildForm

public ShortcutSetDeleteForm::buildForm(array $form, FormStateInterface $form_state) 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 EntityDeleteForm::buildForm File core/modules/shortcut/src/Form/ShortcutSetDeleteForm.php, line 51 Class ShortcutSetDeleteForm Builds the shortcut set deletion form. Namespac

ShortcutSetDeleteForm::__construct

public ShortcutSetDeleteForm::__construct(Connection $database, ShortcutSetStorageInterface $storage) Constructs a ShortcutSetDeleteForm object. File core/modules/shortcut/src/Form/ShortcutSetDeleteForm.php, line 33 Class ShortcutSetDeleteForm Builds the shortcut set deletion form. Namespace Drupal\shortcut\Form Code public function __construct(Connection $database, ShortcutSetStorageInterface $storage) { $this->database = $database; $this->storage = $storage; }

ShortcutSetDeleteForm::$database

The database connection. Type: \Drupal\Core\Database\Connection File core/modules/shortcut/src/Form/ShortcutSetDeleteForm.php, line 21 Class ShortcutSetDeleteForm Builds the shortcut set deletion form. Namespace Drupal\shortcut\Form Code protected $database;

ShortcutSetDeleteForm::$storage

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

ShortcutSetDeleteForm

Builds the shortcut set 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\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses EntityDeleteFormTraitclass

ShortcutSetAccessControlHandler::checkCreateAccess

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

ShortcutSetAccessControlHandler::checkAccess

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