Class: Spree::PageSections::PageTitle
- Inherits:
-
Spree::PageSection
- Object
- Spree::PageSection
- Spree::PageSections::PageTitle
- Defined in:
- app/models/spree/page_sections/page_title.rb
Constant Summary
Constants inherited from Spree::PageSection
Spree::PageSection::BACKGROUND_COLOR_DEFAULT, Spree::PageSection::BORDER_COLOR_DEFAULT, Spree::PageSection::BOTTOM_BORDER_WIDTH_DEFAULT, Spree::PageSection::BOTTOM_PADDING_DEFAULT, Spree::PageSection::TEXT_COLOR_DEFAULT, Spree::PageSection::TOP_BORDER_WIDTH_DEFAULT, Spree::PageSection::TOP_PADDING_DEFAULT
Instance Attribute Summary
Attributes inherited from Spree::PageSection
Instance Method Summary collapse
Methods inherited from Spree::PageSection
#available_blocks_to_add, #blocks_available?, #can_be_deleted?, #can_be_sorted?, #can_sort_blocks?, #copy_rich_text_fields_from, #deep_clone, #deep_clone_links, #dup, #lazy?, #lazy_path, #restore_design_settings_to_defaults, #rich_text_fields, #role, role, #theme, #to_partial_path
Instance Method Details
#display_name ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/models/spree/page_sections/page_title.rb', line 10 def display_name if pageable.is_a?(Spree::Page) && pageable.custom? pageable.name else Spree.t('page_sections.page_title.display_name') end end |
#icon_name ⇒ Object
6 7 8 |
# File 'app/models/spree/page_sections/page_title.rb', line 6 def icon_name 'heading' end |