public function EasyMetaConfigurationForm::buildForm in Easymeta 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/ EasyMetaConfigurationForm.php, line 33
Class
- EasyMetaConfigurationForm
- Defines a form that configures forms module settings.
Namespace
Drupal\easymeta\FormCode
public function buildForm(array $form, FormStateInterface $form_state, Request $request = NULL) {
$config = $this
->config('easymeta.settings');
$form['use_og_meta'] = array(
'#type' => 'checkbox',
'#title' => $this
->t('Use OG meta'),
'#default_value' => $config
->get('use_og_meta'),
);
return parent::buildForm($form, $form_state);
}