public static function Style::getStyleOptions in Styles API 8
Return all available layout 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.
Deprecated
Use \Drupal\styles_api\Plugin\Style\StylePluginManagerInterface::getLayoutOptions().
File
- src/
Style.php, line 43 - Contains StyleapiManager.
Class
- Style
- Stylesapi plugin manager.
Namespace
Drupal\styles_apiCode
public static function getStyleOptions(array $params = []) {
return static::styleapiPluginManager()
->getStyleOptions($params);
}