You are here

public function AdminSettings::buildForm in jEditable inline content editing 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 ConfigFormBase::buildForm

File

src/Form/AdminSettings.php, line 33

Class

AdminSettings
Class AdminSettings.

Namespace

Drupal\jeditable\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['jeditable_empty_placeholder'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Empty field placeholder'),
    '#default_value' => $this
      ->config('jeditable.settings')
      ->get('jeditable_empty_placeholder'),
    '#description' => $this
      ->t('Text, that will be shown if field is empty'),
  ];
  return parent::buildForm($form, $form_state);
}