You are here

public function TwitterProfileEntityForm::buildForm in Tweet Feed 8.3

Same name and namespace in other branches
  1. 4.x src/Form/TwitterProfileEntityForm.php \Drupal\tweet_feed\Form\TwitterProfileEntityForm::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 EntityForm::buildForm

File

src/Form/TwitterProfileEntityForm.php, line 18

Class

TwitterProfileEntityForm
Form controller for Tweet entity edit forms.

Namespace

Drupal\tweet_feed\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {

  /* @var $entity \Drupal\tweet_feed\Entity\TwitterProfile */
  $form = parent::buildForm($form, $form_state);
  $entity = $this->entity;
  return $form;
}