You are here

protected function PageManagerPanelsStorage::loadPageVariant in Panels 8.4

Same name and namespace in other branches
  1. 8.3 src/Plugin/PanelsStorage/PageManagerPanelsStorage.php \Drupal\panels\Plugin\PanelsStorage\PageManagerPanelsStorage::loadPageVariant()

Load a page variant entity.

Parameters

string $id: The page variant entity's id.

Return value

\Drupal\page_manager\PageVariantInterface

3 calls to PageManagerPanelsStorage::loadPageVariant()
PageManagerPanelsStorage::access in src/Plugin/PanelsStorage/PageManagerPanelsStorage.php
Checks if the user has access to a Panels display.
PageManagerPanelsStorage::load in src/Plugin/PanelsStorage/PageManagerPanelsStorage.php
Loads a Panels display.
PageManagerPanelsStorage::save in src/Plugin/PanelsStorage/PageManagerPanelsStorage.php
Saves a Panels display.

File

src/Plugin/PanelsStorage/PageManagerPanelsStorage.php, line 62

Class

PageManagerPanelsStorage
A Panels storage service that stores Panels displays in Page Manager.

Namespace

Drupal\panels\Plugin\PanelsStorage

Code

protected function loadPageVariant($id) {
  return $this->entityTypeManager
    ->getStorage('page_variant')
    ->load($id);
}