function VariantCollectionInterface::getVariant
Same name in other branches
- 4.0.x src/Plugin/VariantCollectionInterface.php \Drupal\ctools\Plugin\VariantCollectionInterface::getVariant()
Retrieves a specific variant.
Parameters
string $variant_id: The variant ID.
Return value
\Drupal\Core\Display\VariantInterface The variant object.
File
-
src/
Plugin/ VariantCollectionInterface.php, line 30
Class
- VariantCollectionInterface
- Provides an interface for objects that have variants e.g. Pages.
Namespace
Drupal\ctools\PluginCode
public function getVariant($variant_id);