public function EntityManager::getFormDisplay in Drupal 8
Overrides EntityDisplayRepositoryInterface::getFormDisplay
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::getFormwDisplay() instead.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityManager.php, line 910
Class
- EntityManager
- Provides a wrapper around many other services relating to entities.
Namespace
Drupal\Core\EntityCode
public function getFormDisplay($entity_type, $bundle, $form_mode = self::DEFAULT_DISPLAY_MODE) {
@trigger_error('EntityManager::getFormDisplay() is deprecated in drupal:8.8.0 and will be removed before Drupal 9.0.0. Use \\Drupal::service(\'entity_display.repository\')->getFormDisplay() instead.', E_USER_DEPRECATED);
return $this->container
->get('entity_display.repository')
->getFormDisplay($entity_type, $bundle, $form_mode);
}