Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Paragraphs Horizontal Rule

Security covered Under active development 12 sites

Part of the Paragraphs ecosystem · 89 projects

This module provides a paragraph type that allows users to insert a horizontal rule into their content. You can choose from predefined styles or customize them via hooks to match your theme's design.

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.

Drupal 8–10 · not 11

Ask your assistant about Paragraphs Horizontal Rule

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.0.0 Stable 8–10 Jul 31, 2023