public function RoleWatchdogForm::buildForm in Role Watchdog 8
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/ RoleWatchdogForm.php, line 18
Class
- RoleWatchdogForm
- Form controller for Role Watchdog edit forms.
Namespace
Drupal\role_watchdog\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
/* @var $entity \Drupal\role_watchdog\Entity\RoleWatchdog */
$form = parent::buildForm($form, $form_state);
$entity = $this->entity;
return $form;
}