public function PanelsStorageManager::load in Panels 8.4
Same name and namespace in other branches
- 8.3 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 89
Class
- PanelsStorageManager
- Panels storage manager service.
Namespace
Drupal\panels\StorageCode
public function load($storage_type, $id) {
$storage = $this
->getStorage($storage_type);
return $storage
->load($id);
}