function VariantCollectionInterface::getVariants

Same name in other branches
  1. 8.x-3.x src/Plugin/VariantCollectionInterface.php \Drupal\ctools\Plugin\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();