DenyAdminRoutes

Cache policy for routes with the '_admin_route' option set. This policy rule denies caching of responses generated for admin routes, because admin routes have very low cache hit ratios due to low traffic and form submissions. Hierarchy class \Drupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes implements ResponsePolicyInterface File core/modules/dynamic_page_cache/src/PageCache/ResponsePolicy/DenyAdminRoutes.php, line 17 Namespace Drupal\dynamic_page_cache\PageCache\Respon

DeleteForm::__construct

public DeleteForm::__construct(AliasStorageInterface $alias_storage) Constructs a \Drupal\path\Form\DeleteForm object. Parameters \Drupal\Core\Path\AliasStorageInterface $alias_storage: The alias storage service. File core/modules/path/src/Form/DeleteForm.php, line 36 Class DeleteForm Builds the form to delete a path alias. Namespace Drupal\path\Form Code public function __construct(AliasStorageInterface $alias_storage) { $this->aliasStorage = $alias_storage; }

DeleteForm::submitForm

public DeleteForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/forum/src/Form/DeleteForm.php, line 62 Class DeleteForm Builds the form to delete a forum term. Namespace Drupal\forum\Form Code public function submitForm(array &

DeleteForm::submitForm

public DeleteForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/path/src/Form/DeleteForm.php, line 84 Class DeleteForm Builds the form to delete a path alias. Namespace Drupal\path\Form Code public function submitForm(array &$

DeleteForm::logDeletionMessage

public DeleteForm::logDeletionMessage() Overrides ContentEntityDeleteForm::logDeletionMessage File core/modules/comment/src/Form/DeleteForm.php, line 44 Class DeleteForm Provides the comment delete confirmation form. Namespace Drupal\comment\Form Code public function logDeletionMessage() { $this->logger('content')->notice('Deleted comment @cid and its replies.', array('@cid' => $this->entity->id())); }

DeleteForm::getRedirectUrl

protected DeleteForm::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/comment/src/Form/DeleteForm.php, line 23 Class DeleteForm Provides the comment delete confirmation form. Namespace Drupal\comment\Form Code protected function getRedirectUrl() { return $this->getCancelUrl(); }

DeleteForm::getQuestion

public DeleteForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/forum/src/Form/DeleteForm.php, line 32 Class DeleteForm Builds the form to delete a forum term. Namespace Drupal\forum\Form Code public function getQuestion() { return $this->t('Are you sure you want to delete the forum %label?', array('%label' => $this->taxonomyT

DeleteForm::getQuestion

public DeleteForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/path/src/Form/DeleteForm.php, line 59 Class DeleteForm Builds the form to delete a path alias. Namespace Drupal\path\Form Code public function getQuestion() { return t('Are you sure you want to delete path alias %title?', array('%title' => $this->pathAlias['alias']))

DeleteForm::getFormId

public DeleteForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/forum/src/Form/DeleteForm.php, line 25 Class DeleteForm Builds the form to delete a forum term. Namespace Drupal\forum\Form Code public function getFormId() { return 'forum_confirm_delete'; }

DeleteForm::getFormId

public DeleteForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/path/src/Form/DeleteForm.php, line 52 Class DeleteForm Builds the form to delete a path alias. Namespace Drupal\path\Form Code public function getFormId() { return 'path_alias_delete'; }