You are here

public function BundleEntityDuplicatorInterface::duplicateDisplays in Entity API 8

Duplicates the bundle entity's view/form displays.

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface $bundle_entity: The bundle entity.

string $target_bundle_id: The target bundle ID.

Throws

\InvalidArgumentException Thrown if the given entity is not a bundle entity.

1 method overrides BundleEntityDuplicatorInterface::duplicateDisplays()
BundleEntityDuplicator::duplicateDisplays in src/BundleEntityDuplicator.php
Duplicates the bundle entity's view/form displays.

File

src/BundleEntityDuplicatorInterface.php, line 54

Class

BundleEntityDuplicatorInterface
Duplicates bundle entities, their fields and displays.

Namespace

Drupal\entity

Code

public function duplicateDisplays(ConfigEntityInterface $bundle_entity, $target_bundle_id);