Class: Decidim::Budgets::ProjectPresenter

Inherits:
ResourcePresenter
  • Object
show all
Defined in:
app/presenters/decidim/budgets/project_presenter.rb

Instance Method Summary collapse

Instance Method Details

#title(html_escape: false, all_locales: false) ⇒ String

Renders the title of the project

Parameters:

  • html_escape (Boolean) (defaults to: false)

    Should HTML entities within the title be escaped? Default is false.

  • all_locales (Boolean) (defaults to: false)

    Should the title be returned for all locales? Default is false.

Returns:

  • (String)

    The title of the project.



11
12
13
14
15
# File 'app/presenters/decidim/budgets/project_presenter.rb', line 11

def title(html_escape: false, all_locales: false)
  return unless project

  super(project.title, html_escape, all_locales)
end