You are here

public function PageVariantInterface::setPageEntity in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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 58

Class

PageVariantInterface
Provides an interface defining a PageVariant entity.

Namespace

Drupal\page_manager

Code

public function setPageEntity(PageInterface $page);