public function VariantCollectionInterface::getVariants in Chaos Tool Suite (ctools) 8.3
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\PluginCode
public function getVariants();