You are here

Style configuration in Paragraphs Collection 8

Each module can have its own styles for paragraphs defined a YAML based configuration schema. Style definition can be discovered by prefixing config by the name of module and end up filename with 'paragraphs.style.yml'.

paragraphs_collection_demo . paragraphs . style . yml;

The structure of the YAML configuration file must have predefined structure, which contains title, description and CSS libraries to be used to exact style. The definition key "permission" is optional and if set to true, users must have "use {style} style" permission to be able to use it.


title: 'Name of the style'
description: 'Defines different styles for paragraphs'
groups:
 - 'General Group'
 - 'Slideshow Group'
libraries:
 - 'paragraphs_collection_demo/style'
permission: true

File

./paragraphs_collection.api.php, line 23
Hooks and documentation related to paragraphs_collection module.