function VariantCollectionInterface::addVariant
Same name in other branches
- 8.x-3.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\PluginCode
public function addVariant(array $configuration);