public function LayoutPluginManagerInterface::getLayoutOptions in Layout Plugin (obsolete, use core's Layout Discovery) 8
Get all available layouts as an options array.
If group_by_category option/parameter passed group the options by category.
Parameters
array $params: (optional) An associative array with the following keys:
- group_by_category: (bool) If set to TRUE, return an array of arrays
grouped by the category name; otherwise, return a single-level associative array.
Return value
array Layout options, as array.
1 method overrides LayoutPluginManagerInterface::getLayoutOptions()
- LayoutPluginManager::getLayoutOptions in src/
Plugin/ Layout/ LayoutPluginManager.php - Get all available layouts as an options array.
File
- src/
Plugin/ Layout/ LayoutPluginManagerInterface.php, line 27
Class
- LayoutPluginManagerInterface
- Provides an interface for the discovery and instantiation of layout plugins.
Namespace
Drupal\layout_plugin\Plugin\LayoutCode
public function getLayoutOptions(array $params = []);