[Mirror] Drupal module to select from a list of classes to apply to layout builder blocks and sections.
This module allows:
Example of a plugin declaration in the YAML file
colors_background_color:
category: Background
label: Background color
description: Similar to the contextual text color classes, easily set the background of an element to any contextual class.
options:
bg-primary: Primary
bg-secondary: Secondary
bg-success: Success
bg-danger: Danger
bg-warning: Warning
bg-info: Info
bg-light: Light
bg-dark: Dark
bg-white: White
bg-transparent: Transparent
previewed_with:
- border
- p-2
Where:
colors_background_color
is the plugin IDinside
: defaultaside
: for styles not intended to be applied on p
tag and having side effectshidden
: when the style may have side effects on the whole styles libraryYou can disable a plugin by declaring a plugin with the same ID and if your module has a higher weight than the module declaring the plugin, example:
colors_background_color:
enabled: false
This module requires no modules outside of Drupal core.
This module requires the PHP CSS Parser library, so it requires to be installed with Composer.
A patch may also be required on this library, it is documented into the
composer.json
file of the module.
If you are using cweagans/composer-patches
with the enable-patching
option
enabled in your composer.json
, the patch should be applied automatically.
Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.
The module has no menu or modifiable settings. There is no configuration.
The submodules provide new configuration options depending on the submodule specificities.