You are here

protected function PageManagerSectionStorage::getPageVariant in Page Manager 8.4

Gets the page variant entity.

Return value

\Drupal\page_manager\Entity\PageVariant The page variant entity.

Throws

\Drupal\Component\Plugin\Exception\PluginException

1 call to PageManagerSectionStorage::getPageVariant()
PageManagerSectionStorage::save in src/Plugin/SectionStorage/PageManagerSectionStorage.php
Saves the sections.

File

src/Plugin/SectionStorage/PageManagerSectionStorage.php, line 122

Class

PageManagerSectionStorage
Defines the 'page_manager' section storage type.

Namespace

Drupal\page_manager\Plugin\SectionStorage

Code

protected function getPageVariant() {
  return $this
    ->getContextValue('entity');
}