public function PageInterface::addVariant in Page Manager 8
Same name and namespace in other branches
- 8.4 src/PageInterface.php \Drupal\page_manager\PageInterface::addVariant()
Adds a variant to this page.
Parameters
\Drupal\page_manager\PageVariantInterface $variant: A page variant entity.
Return value
$this
1 method overrides PageInterface::addVariant()
- Page::addVariant in src/
Entity/ Page.php - Adds a variant to this page.
File
- src/
PageInterface.php, line 59 - Contains \Drupal\page_manager\PageInterface.
Class
- PageInterface
- Provides an interface for page entities.
Namespace
Drupal\page_managerCode
public function addVariant(PageVariantInterface $variant);