public function PageVariantInterface::setPageEntity in Page Manager 8
Same name and namespace in other branches
- 8.4 src/PageVariantInterface.php \Drupal\page_manager\PageVariantInterface::setPageEntity()
Sets the page with a full entity object.
This is mainly useful for setting an unsaved page on a page variant so you can continue to work with it prior to saving.
Parameters
\Drupal\page_manager\PageInterface $page: The page entity object this variant is associated with.
Return value
$this
1 method overrides PageVariantInterface::setPageEntity()
- PageVariant::setPageEntity in src/
Entity/ PageVariant.php - Sets the page with a full entity object.
File
- src/
PageVariantInterface.php, line 63 - Contains Drupal\page_manager\PageVariantInterface.
Class
- PageVariantInterface
- Provides an interface defining a PageVariant entity.
Namespace
Drupal\page_managerCode
public function setPageEntity(PageInterface $page);