public function VocabularyListBuilder::buildForm in Termcase 8
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
- src/
VocabularyListBuilder.php, line 101
Class
- VocabularyListBuilder
- Defines a class to build a listing of taxonomy vocabulary entities.
Namespace
Drupal\termcaseCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form['vocabularies']['#attributes'] = [
'id' => 'taxonomy',
];
$form['actions']['submit']['#value'] = $this
->t('Save');
return $form;
}