TermInterface::setDescription

public TermInterface::setDescription($description) Sets the term's description. Parameters string $description: The term's description. Return value $this File core/modules/taxonomy/src/TermInterface.php, line 29 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function setDescription($description);

TermInterface::getFormat

public TermInterface::getFormat() Gets the text format name for the term's description. Return value string The text format name. File core/modules/taxonomy/src/TermInterface.php, line 37 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function getFormat();

TermInterface::getName

public TermInterface::getName() Gets the name of the term. Return value string The name of the term. File core/modules/taxonomy/src/TermInterface.php, line 55 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function getName();

TermInterface::getDescription

public TermInterface::getDescription() Gets the term's description. Return value string The term description. File core/modules/taxonomy/src/TermInterface.php, line 19 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function getDescription();

TermInterface

Provides an interface defining a taxonomy term entity. Hierarchy interface \Drupal\Core\Entity\ContentEntityInterface extends \Traversable; interface \Drupal\Core\Entity\EntityChangedInterfaceinterface \Drupal\taxonomy\TermInterface File core/modules/taxonomy/src/TermInterface.php, line 11 Namespace Drupal\taxonomy Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. CacheableDependencyInterface::getCacheContext

TermForm::buildEntity

public TermForm::buildEntity(array $form, FormStateInterface $form_state) Builds an updated entity object based upon the submitted form values. For building the updated entity object the form's entity is cloned and the submitted form values are copied to entity properties. The form's entity remains unchanged. Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value \Drupal\Core\Entit

TermForm::save

public TermForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. 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 int Either SAVED_NEW or SAVED_UPDATED, depending on the operation pe

TermForm::validateForm

public TermForm::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/modules/taxonomy/src/TermForm.php, line 94 Class Ter

TermForm

Base for handler for taxonomy term 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\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\taxonomy\TermForm File core/modules/taxonomy/

TermForm::form

public TermForm::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/modules/taxonomy/src/TermForm.php, line 16 Class TermForm Base for handler for taxonomy term edit forms. Namespace Drupal\taxonomy Code public function form(array $form, FormStateInterface $form_state) { $term = $this->entity; $voc