You are here

public function ContactSettingsForm::buildForm in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 content_entity_example/src/Form/ContactSettingsForm.php \Drupal\content_entity_example\Form\ContactSettingsForm::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 FormInterface::buildForm

File

modules/content_entity_example/src/Form/ContactSettingsForm.php, line 35

Class

ContactSettingsForm
Class ContentEntityExampleSettingsForm.

Namespace

Drupal\content_entity_example\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['contact_settings']['#markup'] = 'Settings form for ContentEntityExample. Manage field settings here.';
  return $form;
}