public function PanelsDisplayManagerInterface::createDisplay in Panels 8.4
Same name and namespace in other branches
- 8.3 src/PanelsDisplayManagerInterface.php \Drupal\panels\PanelsDisplayManagerInterface::createDisplay()
Create a new panels display.
Parameters
string|\Drupal\Core\Layout\LayoutInterface|NULL $layout: The layout plugin object or plugin id. If omitted, the default Panels layout will be used.
string|\Drupal\panels\Plugin\DisplayBuilder\DisplayBuilderInterface|NULL $builder: The builder object or plugin id. If omitted, the default Panels builder will be used.
Return value
\Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant
Throws
\Exception If $layout or $builder are of an invalid type.
1 method overrides PanelsDisplayManagerInterface::createDisplay()
- PanelsDisplayManager::createDisplay in src/
PanelsDisplayManager.php - Create a new panels display.
File
- src/
PanelsDisplayManagerInterface.php, line 27
Class
- PanelsDisplayManagerInterface
- Interface for a service that manages Panels displays.
Namespace
Drupal\panelsCode
public function createDisplay($layout = NULL, $builder = NULL);