Textarea

Defines the textarea element for the configuration translation interface. Hierarchy class \Drupal\config_translation\FormElement\FormElementBase implements ElementInterface uses StringTranslationTraitclass \Drupal\config_translation\FormElement\Textarea File core/modules/config_translation/src/FormElement/Textarea.php, line 10 Namespace Drupal\config_translation\FormElement Members Name Modifiers Type Description FormElementBase::$definition protected property The data

text.module

Defines simple text field types. File core/modules/text/text.module Functions Name Description text_help Implements hook_help(). text_summary Generates a trimmed, formatted version of a text field value.

Textarea

Provides a form element for input of multiple-line text. Properties: #rows: Number of rows in the text box. #cols: Number of columns in the text box. #resizable: Controls whether the text area is resizable. Allowed values are "none", "vertical", "horizontal", or "both" (defaults to "vertical"). Usage example: $form['text'] = array( '#type' => 'textarea', '#title' => $this->t('Text'), ); Plugin annotation @FormElement("textarea") Hierarchy class \Drupal\Component\Plugin\Plugi

TermViewsData

Provides the views data for the taxonomy entity type. Hierarchy class \Drupal\views\EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterface uses StringTranslationTraitclass \Drupal\taxonomy\TermViewsData File core/modules/taxonomy/src/TermViewsData.php, line 10 Namespace Drupal\taxonomy Members Name Modifiers Type Description EntityViewsData::$entityManager protected property The entity manager. EntityViewsData::$entityType protected property

text-format-wrapper.html.twig

Default theme implementation for a text format-enabled form element. Available variables: children: Text format element children. description: Text format element description. attributes: HTML attributes for the containing element. aria_description: Flag for whether or not an ARIA description has been added to the description container. See also template_preprocess_text_format_wrapper() File core/modules/filter/templates/text-format-wrapper.html.twig Related topics Theme system overvi

TermViewsData::getViewsData

public TermViewsData::getViewsData() Returns views data for the entity type. Return value array Views data in the format of hook_views_data(). Overrides EntityViewsData::getViewsData File core/modules/taxonomy/src/TermViewsData.php, line 15 Class TermViewsData Provides the views data for the taxonomy entity type. Namespace Drupal\taxonomy Code public function getViewsData() { $data = parent::getViewsData(); $data['taxonomy_term_field_data']['table']['base']['help'] = $this->t(

TermViewBuilder::alterBuild

protected TermViewBuilder::alterBuild(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) Specific per-entity building. Parameters array $build: The render array that is being created. \Drupal\Core\Entity\EntityInterface $entity: The entity to be prepared. \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The entity view display holding the display options configured for the entity components. string $view_mode: The view mode that should

TermViewBuilder

View builder handler for taxonomy terms. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityViewBuilder implements EntityHandlerInterface, EntityViewBuilderInterfaceclass \Drupal\taxonomy\TermViewBuilder File core/modules/taxonomy/src/TermViewBuilder.php, line 12 Namespace Drupal\taxonomy Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected

TermTranslationHandler::entityFormAlter

public TermTranslationHandler::entityFormAlter(array &$form, FormStateInterface $form_state, EntityInterface $entity) Performs the needed alterations to the entity form. Parameters array $form: The entity form to be altered to provide the translation workflow. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Entity\EntityInterface $entity: The entity being created or edited. Overrides ContentTranslationHandler::entityFormAlter File core/modules/

TermTranslationHandler::entityFormSave

TermTranslationHandler::entityFormSave(array $form, FormStateInterface $form_state) Form submission handler for TermTranslationHandler::entityFormAlter(). This handles the save action. See also \Drupal\Core\Entity\EntityForm::build() File core/modules/taxonomy/src/TermTranslationHandler.php, line 29 Class TermTranslationHandler Defines the translation handler for terms. Namespace Drupal\taxonomy Code function entityFormSave(array $form, FormStateInterface $form_state) { if ($this-&g