ContentEntityDeleteForm

Provides a generic base class for a content entity deletion form. @todo Re-evaluate and streamline the entity deletion form class hierarchy in https://www.drupal.org/node/2491057. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal

ContentEntityConfirmFormBase::validateForm

public ContentEntityConfirmFormBase::validateForm(array &$form, FormStateInterface $form_state) Button-level validation handlers are highly discouraged for entity forms, as they will prevent entity validation from running. If the entity is going to be saved during the form submission, this method should be manually invoked from the button-level validation handler, otherwise an exception will be thrown. Overrides ContentEntityForm::validateForm File core/lib/Drupal/Core/Entity/ContentEntity

ContentEntityConfirmFormBase::save

public ContentEntityConfirmFormBase::save(array $form, FormStateInterface $form_state) The save() method is not used in ContentEntityConfirmFormBase. This overrides the default implementation that saves the entity. Confirmation forms should override submitForm() instead for their logic. Overrides EntityForm::save File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 100 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form

ContentEntityConfirmFormBase::getFormName

public ContentEntityConfirmFormBase::getFormName() Returns the internal name used to refer to the confirmation item. Return value string The internal form name. Overrides ConfirmFormInterface::getFormName File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 45 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getFormName() { return 'confirm'; }

ContentEntityConfirmFormBase::getDescription

public ContentEntityConfirmFormBase::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ConfirmFormInterface::getDescription File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 24 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getDescription() { return $this->t('This action cannot be u

ContentEntityConfirmFormBase::getConfirmText

public ContentEntityConfirmFormBase::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ConfirmFormInterface::getConfirmText File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 31 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getConfirmText() { return $this->t('Confirm');

ContentEntityConfirmFormBase::getCancelText

public ContentEntityConfirmFormBase::getCancelText() Returns a caption for the link which cancels the action. Return value string The form cancellation text. Overrides ConfirmFormInterface::getCancelText File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 38 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getCancelText() { return $this->t('Cancel'); }

ContentEntityConfirmFormBase::getBaseFormId

public ContentEntityConfirmFormBase::getBaseFormId() Returns a string identifying the base form. Return value string|null The string identifying the base form or NULL if this is not a base form. Overrides EntityForm::getBaseFormId File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 17 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getBaseFormId() { return $t

ContentEntityConfirmFormBase::form

public ContentEntityConfirmFormBase::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides ContentEntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 71 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function

ContentEntityConfirmFormBase::delete

public ContentEntityConfirmFormBase::delete(array $form, FormStateInterface $form_state) The delete() method is not used in ContentEntityConfirmFormBase. This overrides the default implementation that redirects to the delete-form confirmation form. Confirmation forms should override submitForm() instead for their logic. File core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 111 Class ContentEntityConfirmFormBase Provides a generic base class for an entity-based confirmati