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