Class: Spree::PageBlocks::Link
Constant Summary
Spree::PageBlock::BOTTOM_PADDING_DEFAULT, Spree::PageBlock::CONTAINER_ALIGNMENT_DEFAULT, Spree::PageBlock::SIZE_DEFAULT, Spree::PageBlock::TEXT_ALIGNMENT_DEFAULT, Spree::PageBlock::TOP_PADDING_DEFAULT, Spree::PageBlock::WIDTH_DESKTOP_DEFAULT
Instance Method Summary
collapse
#form_partial_name
Instance Method Details
#display_name ⇒ Object
10
11
12
|
# File 'app/models/spree/page_blocks/link.rb', line 10
def display_name
link&.label || Spree.t('page_blocks.link.display_name')
end
|
#icon_name ⇒ Object
6
7
8
|
# File 'app/models/spree/page_blocks/link.rb', line 6
def icon_name
'menu-2'
end
|
#link_destroyed(_link) ⇒ Object
14
15
16
17
18
|
# File 'app/models/spree/page_blocks/link.rb', line 14
def link_destroyed(_link)
return unless page_links_count.zero?
destroy
end
|