You are here

public function LingotekProfileListBuilder::buildForm in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 8 src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  2. 8.2 src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  3. 4.0.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  4. 3.0.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  5. 3.1.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  6. 3.2.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  7. 3.3.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  8. 3.4.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  9. 3.6.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  10. 3.7.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::buildForm()
  11. 3.8.x src/LingotekProfileListBuilder.php \Drupal\lingotek\LingotekProfileListBuilder::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

src/LingotekProfileListBuilder.php, line 135

Class

LingotekProfileListBuilder
Defines a class to build a listing of Lingotek profile entities.

Namespace

Drupal\lingotek

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  $form[$this->entitiesKey]['#profiles'] = $this->entities;
  $form['actions']['submit']['#value'] = t('Save configuration');
  return $form;
}