TermDeleteForm::getDeletionMessage

protected TermDeleteForm::getDeletionMessage() Overrides ContentEntityDeleteForm::getDeletionMessage File core/modules/taxonomy/src/Form/TermDeleteForm.php, line 40 Class TermDeleteForm Provides a deletion confirmation form for taxonomy term. Namespace Drupal\taxonomy\Form Code protected function getDeletionMessage() { return $this->t('Deleted term %name.', array('%name' => $this->entity->label())); }

TermDeleteForm::getDescription

public TermDeleteForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ContentEntityConfirmFormBase::getDescription File core/modules/taxonomy/src/Form/TermDeleteForm.php, line 33 Class TermDeleteForm Provides a deletion confirmation form for taxonomy term. Namespace Drupal\taxonomy\Form Code public function getDescription() { return $this->t('Deleting a term will delete all its children if there are any. T

TermDeleteForm::submitForm

public TermDeleteForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless th

TermDeleteForm::getRedirectUrl

protected TermDeleteForm::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/taxonomy/src/Form/TermDeleteForm.php, line 26 Class TermDeleteForm Provides a deletion confirmation form for taxonomy term. Namespace Drupal\taxonomy\Form Code protected function getRedirectUrl() { return $this->getCancelUrl(); }

TermDeleteForm

Provides a deletion confirmation form for taxonomy term. 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\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase

TermDeleteForm::getCancelUrl

public TermDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ContentEntityDeleteForm::getCancelUrl File core/modules/taxonomy/src/Form/TermDeleteForm.php, line 17 Class TermDeleteForm Provides a deletion confirmation form for taxonomy term. Namespace Drupal\taxonomy\Form Code public function getCancelUrl() { // The cancel URL is the vocabulary collection, terms have no global // list page.

TermAccessControlHandler::checkCreateAccess

protected TermAccessControlHandler::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 entity

TermAccessControlHandler::checkAccess

protected TermAccessControlHandler::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 for wh

TermAccessControlHandler

Defines the access control handler for the taxonomy term entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\taxonomy\TermAccessControlHandler See also \Drupal\taxonomy\Entity\Term File core/modules/taxonomy/src/TermAccessControlHandler.php, line 15 Namespace Drupal\taxonomy Members Name Modifiers

Term::setName

public Term::setName($name) Sets the name of the term. Parameters int $name: The term's name. Return value $this Overrides TermInterface::setName File core/modules/taxonomy/src/Entity/Term.php, line 210 Class Term Defines the taxonomy term entity. Namespace Drupal\taxonomy\Entity Code public function setName($name) { $this->set('name', $name); return $this; }