Sha256: 1ae7799c810f79d29f3397d8bb1bb9a07ee2775000df0a4e37559263e6dd7277

Contents?: true

Size: 414 Bytes

Versions: 13

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This module includes helpers to manage view hooks in layout
  module ViewHooksHelper
    # Public: Renders all hooks registered as `hook_name`.
    #
    # @param hook_name [Symbol] representing the name of the hook.
    #
    # @return [String] an HTML safe String
    def render_hook(hook_name)
      Decidim.view_hooks.render(hook_name, self)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.28.4 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.29.0 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.28.3 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.29.0.rc4 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.29.0.rc3 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.29.0.rc2 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.29.0.rc1 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.28.2 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.28.1 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.28.0 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.28.0.rc5 app/helpers/decidim/view_hooks_helper.rb
decidim-core-0.28.0.rc4 app/helpers/decidim/view_hooks_helper.rb