public function PathFileEntityForm::buildForm in Path File 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/ PathFileEntityForm.php, line 19
Class
- PathFileEntityForm
- Form controller for Path file entity edit forms.
Namespace
Drupal\path_file\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
/* @var $entity \Drupal\path_file\Entity\PathFileEntity */
$form = parent::buildForm($form, $form_state);
$form['#entity_builders']['update_status'] = [
$this,
'updateStatus',
];
return $form;
}