public function PageInterface::getVariant in Page Manager 8.4
Same name and namespace in other branches
- 8 src/PageInterface.php \Drupal\page_manager\PageInterface::getVariant()
Retrieves a specific variant.
Parameters
string $variant_id: The variant ID.
Return value
\Drupal\page_manager\PageVariantInterface The variant object.
1 method overrides PageInterface::getVariant()
- Page::getVariant in src/
Entity/ Page.php - Retrieves a specific variant.
File
- src/
PageInterface.php, line 65
Class
- PageInterface
- Provides an interface for page entities.
Namespace
Drupal\page_managerCode
public function getVariant($variant_id);