You are here

public function TweetEntityForm::buildForm in Tweet Feed 4.x

Same name and namespace in other branches
  1. 8.3 src/Form/TweetEntityForm.php \Drupal\tweet_feed\Form\TweetEntityForm::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/TweetEntityForm.php, line 19

Class

TweetEntityForm
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\TweetEntity */
  $form = parent::buildForm($form, $form_state);
  $entity = $this->entity;
  return $form;
}