public EntityForm::processForm($element, FormStateInterface $form_state, $form)
Process callback: assigns weights and hides extra fields.
\Drupal\Core\Entity\EntityForm::form()
public function processForm($element, FormStateInterface $form_state, $form) { // If the form is cached, process callbacks may not have a valid reference // to the entity object, hence we must restore it. $this->entity = $form_state->getFormObject()->getEntity(); return $element; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityForm.php/function/EntityForm::processForm/8.1.x