EntityConfirmFormBase::getFormName

public EntityConfirmFormBase::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/EntityConfirmFormBase.php, line 47 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getFormName() { return 'confirm'; }

EntityConfirmFormBase::getDescription

public EntityConfirmFormBase::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ConfirmFormInterface::getDescription File core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php, line 26 Class EntityConfirmFormBase 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 undone.'); }

EntityConfirmFormBase::getConfirmText

public EntityConfirmFormBase::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/EntityConfirmFormBase.php, line 33 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getConfirmText() { return $this->t('Confirm'); }

EntityConfirmFormBase::getCancelText

public EntityConfirmFormBase::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/EntityConfirmFormBase.php, line 40 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getCancelText() { return $this->t('Cancel'); }

EntityConfirmFormBase::getBaseFormId

public EntityConfirmFormBase::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/EntityConfirmFormBase.php, line 19 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getBaseFormId() { return $this->entity->ge

EntityConfirmFormBase::delete

public EntityConfirmFormBase::delete(array $form, FormStateInterface $form_state) The delete() method is not used in EntityConfirmFormBase. 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/EntityConfirmFormBase.php, line 105 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal

EntityConfirmFormBase::buildForm

public EntityConfirmFormBase::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 EntityForm::buildForm File core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php, line 54 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirma

EntityConfirmFormBase::actions

protected EntityConfirmFormBase::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php, line 73 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code protected functio

EntityConfirmFormBase

Provides a generic base class for an entity-based confirmation 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 ConfirmFormInterface Related topics Entity API Describes how

EntityChangedTrait::setChangedTime

public EntityChangedTrait::setChangedTime($timestamp) Sets the timestamp of the last entity change for the current translation. Parameters int $timestamp: The timestamp of the last entity save operation. Return value $this Overrides EntityChangedInterface::setChangedTime File core/lib/Drupal/Core/Entity/EntityChangedTrait.php, line 44 Class EntityChangedTrait Provides a trait for accessing changed time. Namespace Drupal\Core\Entity Code public function setChangedTime($timestamp) {