3 namespace Drupal\field_layout\Entity;
5 use Drupal\Core\Entity\Entity\EntityViewDisplay;
6 use Drupal\field_layout\Display\EntityDisplayWithLayoutInterface;
9 * Provides an entity view display entity that has a layout.
11 class FieldLayoutEntityViewDisplay extends EntityViewDisplay implements EntityDisplayWithLayoutInterface {
13 use FieldLayoutEntityDisplayTrait;
18 public function getDefaultRegion() {
19 // This cannot be provided by the trait due to
20 // https://bugs.php.net/bug.php?id=71414 which is fixed in PHP 7.0.6.
21 return $this->getLayoutDefinition($this->getLayoutId())->getDefaultRegion();