You are here

public function BoundDisplayInterface::generateUnboundDisplay in Layout 8.2

Returns an entity with the non-layout-specific configuration of this one.

Parameters

string $id: The entity id to assign to the newly created entity.

string $entity_type: The type of entity to create. The PHP class for this entity type must implement \Drupal\layout\Config\UnboundDisplayInterface.

Return value

\Drupal\layout\Config\UnboundDisplayInterface The newly-created unbound display.

1 method overrides BoundDisplayInterface::generateUnboundDisplay()
Display::generateUnboundDisplay in lib/Drupal/layout/Entity/Display.php
Implements BoundDisplayInterface::generateUnboundDisplay().

File

lib/Drupal/layout/Config/BoundDisplayInterface.php, line 87
Definition of Drupal\layout\Config\BoundDisplayInterface

Class

BoundDisplayInterface
Interface for a Display object that is coupled to a specific layout.

Namespace

Drupal\layout\Config

Code

public function generateUnboundDisplay($id, $entity_type = 'unbound_display');