protected function FieldLayoutEntityDisplayTrait::init in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::init()
Overrides \Drupal\Core\Entity\EntityDisplayBase::init().
File
- core/
modules/ field_layout/ src/ Entity/ FieldLayoutEntityDisplayTrait.php, line 105
Class
- FieldLayoutEntityDisplayTrait
- Provides shared code for entity displays.
Namespace
Drupal\field_layout\EntityCode
protected function init() {
$this
->ensureLayout();
parent::init();
}