You are here

public function VariantCollectionInterface::addVariant in Chaos Tool Suite (ctools) 8.3

Adds a new variant to the entity.

Parameters

array $configuration: An array of configuration for the new variant.

Return value

string The variant ID.

File

src/Plugin/VariantCollectionInterface.php, line 19

Class

VariantCollectionInterface
Provides an interface for objects that have variants e.g. Pages.

Namespace

Drupal\ctools\Plugin

Code

public function addVariant(array $configuration);