function VariantCollectionInterface::addVariant

Same name in other branches
  1. 4.0.x src/Plugin/VariantCollectionInterface.php \Drupal\ctools\Plugin\VariantCollectionInterface::addVariant()

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);