public function ContentEntityForm::getFormDisplay in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::getFormDisplay()
Gets the form display.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
\Drupal\Core\Entity\Display\EntityFormDisplayInterface. The current form display.
Overrides ContentEntityFormInterface::getFormDisplay
File
- core/
lib/ Drupal/ Core/ Entity/ ContentEntityForm.php, line 243 - Contains \Drupal\Core\Entity\ContentEntityForm.
Class
- ContentEntityForm
- Entity form variant for content entity types.
Namespace
Drupal\Core\EntityCode
public function getFormDisplay(FormStateInterface $form_state) {
return $form_state
->get('form_display');
}