Drupal 8  8.0.2
OverviewTerms Class Reference
Inheritance diagram for OverviewTerms:

Public Member Functions

 __construct (ModuleHandlerInterface $module_handler, EntityManagerInterface $entity_manager)
 getFormId ()
 submitForm (array &$form, FormStateInterface $form_state)

Static Public Member Functions

static create (ContainerInterface $container)

Protected Attributes


Constructor & Destructor Documentation

__construct ( ModuleHandlerInterface  $module_handler,
EntityManagerInterface  $entity_manager 

Constructs an OverviewTerms object.

\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler service.
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager service.

References EntityTypeManagerInterface\getStorage(), and Drupal\moduleHandler().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)


getFormId ( )


submitForm ( array &  $form,
FormStateInterface  $form_state 

Form submission handler.

Rather than using a textfield or weight field, this form depends entirely upon the order of form elements on the page to determine new weights.

Because there might be hundreds or thousands of taxonomy terms that need to be ordered, terms are weighted from 0 to the number of terms in the vocabulary, rather than the standard -10 to 10 scale. Numbers are sorted lowest to highest, but are not necessarily sequential. Numbers may be skipped when a term has children so that reordering is minimal when a child is added or removed from a term.

array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.

References FormStateInterface\get(), FormStateInterface\getValue(), and t().

Here is the call graph for this function:

The documentation for this class was generated from the following file: