function FieldLayoutEntityDisplayTrait::init

Same name in other branches
  1. 8.9.x core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::init()
  2. 10 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::init()
  3. 11.x 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\Entity

Code

protected function init() {
    $this->ensureLayout();
    parent::init();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.