You are here

public function PanelsStorageManager::load in Panels 8.3

Same name and namespace in other branches
  1. 8.4 src/Storage/PanelsStorageManager.php \Drupal\panels\Storage\PanelsStorageManager::load()

Loads a Panels display.

Parameters

string $storage_type: The storage type used by the storage plugin.

string $id: The id within the storage plugin for the requested Panels display.

Return value

\Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant|NULL The Panels display if one exists with this id; NULL otherwise.

Overrides PanelsStorageManagerInterface::load

File

src/Storage/PanelsStorageManager.php, line 80

Class

PanelsStorageManager
Panels storage manager service.

Namespace

Drupal\panels\Storage

Code

public function load($storage_type, $id) {
  $storage = $this
    ->getStorage($storage_type);
  return $storage
    ->load($id);
}