You are here

public function ContributorRoleListBuilder::buildForm in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/ContributorRoleListBuilder.php \Drupal\bibcite_entity\ContributorRoleListBuilder::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

modules/bibcite_entity/src/ContributorRoleListBuilder.php, line 44

Class

ContributorRoleListBuilder
Provides a listing of Contributor role entities.

Namespace

Drupal\bibcite_entity

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  $form['role_list_description'] = [
    '#type' => 'label',
    '#title' => $this
      ->t('First value in the list is used as default contributor role.'),
  ];
  return $form;
}