public function TweetEntityForm::buildForm in Tweet Feed 8.3
Same name and namespace in other branches
- 4.x 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\FormCode
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;
}