Module: Decidim::ViewHooksHelper

Included in:
CardMetadataCell, ProfileCell, ProfileSidebarCell
Defined in:
decidim-core/app/helpers/decidim/view_hooks_helper.rb

Overview

This module includes helpers to manage view hooks in layout

Instance Method Summary collapse

Instance Method Details

#render_hook(hook_name) ⇒ String

Public: Renders all hooks registered as ‘hook_name`.

Parameters:

  • hook_name (Symbol)

    representing the name of the hook.

Returns:

  • (String)

    an HTML safe String



11
12
13
# File 'decidim-core/app/helpers/decidim/view_hooks_helper.rb', line 11

def render_hook(hook_name)
  Decidim.view_hooks.render(hook_name, self)
end