EntityForm::form

public EntityForm::form(array $form, FormStateInterface $form_state)

Gets the actual form array to be built.

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

File

core/lib/Drupal/Core/Entity/EntityForm.php, line 147

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

public function form(array $form, FormStateInterface $form_state) {
  // Add #process and #after_build callbacks.
  $form['#process'][] = '::processForm';
  $form['#after_build'][] = '::afterBuild';

  return $form;
}
doc_Drupal
2016-10-29 09:06:07
Comments
Leave a Comment

Please login to continue.