function FieldLayoutEntityDisplayTrait::getLayoutId

Same name in other branches
  1. 9 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getLayoutId()
  2. 8.9.x core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getLayoutId()
  3. 10 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getLayoutId()

Implements \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::getLayoutId().

5 calls to FieldLayoutEntityDisplayTrait::getLayoutId()
FieldLayoutEntityDisplayTrait::calculateDependencies in core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php
Overrides \Drupal\Core\Entity\EntityDisplayBase::calculateDependencies().
FieldLayoutEntityDisplayTrait::ensureLayout in core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php
FieldLayoutEntityDisplayTrait::getLayout in core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php
Implements \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::getLayout().
FieldLayoutEntityDisplayTrait::preSave in core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php
Overrides \Drupal\Core\Entity\EntityDisplayBase::preSave().
FieldLayoutEntityDisplayTrait::setLayoutId in core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php
Implements \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::setLayoutId().

File

core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php, line 33

Class

FieldLayoutEntityDisplayTrait
Provides shared code for entity displays.

Namespace

Drupal\field_layout\Entity

Code

public function getLayoutId() {
    return $this->getThirdPartySetting('field_layout', 'id');
}

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