You are here

public function VocabularyListBuilder::buildForm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/VocabularyListBuilder.php \Drupal\taxonomy\VocabularyListBuilder::buildForm()

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 DraggableListBuilder::buildForm

File

core/modules/taxonomy/src/VocabularyListBuilder.php, line 93
Contains \Drupal\taxonomy\VocabularyListBuilder.

Class

VocabularyListBuilder
Defines a class to build a listing of taxonomy vocabulary entities.

Namespace

Drupal\taxonomy

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  $form['vocabularies']['#attributes'] = array(
    'id' => 'taxonomy',
  );
  $form['actions']['submit']['#value'] = t('Save');
  return $form;
}