A simple paragraph type that allows the user to insert a horizontal rule <hr> into the page.

By default there are two possible horizontal rule 'types' (CSS classes) that can be applied to the paragraph.

  • Thin (hr--thin)
  • Thick (hr--thick)

These values can be altered via the hook_paragraphs_hr_allowed_values_alter function.

e.g.

function MODULE_paragraphs_hr_allowed_values_alter (&$options) {
    $options = [
        'class1' => 'Class 1',
        'class2' => 'Class 2',
        'class3' => 'Class 3',
        'class4' => 'Class 4'
    ];
}

Note: The site's theme is responsible for providing the CSS styles associated with the defined CSS classes.

Project information

Releases