function VariantCollectionInterface::getVariants

Returns the variants available for the entity.

Return value

\Drupal\Core\Display\VariantInterface[] An array of the variants.

File

src/Plugin/VariantCollectionInterface.php, line 48

Class

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

Namespace

Drupal\ctools\Plugin

Code

public function getVariants();