Class: NavListLinkDrop

Inherits:
Liquid::Drop
  • Object
show all
Includes:
ModeDependentDropConcerns
Defined in:
app/drops/nav_list_link_drop.rb

Overview

Represents a link on a NavListDrop.

Instance Method Summary collapse

Instance Method Details

#active?Boolean

If this is the active link

Returns:

  • (Boolean)

#child_active?Boolean

Deprecated.

No longer used

If one of it's direct descendants is the active link

Returns:

  • (Boolean)

#childrenArray<NavListLinkDrop>

Returns:

#conditionally_visible?Boolean

If this link is only conditionally visible to the current logged in user/member

Returns:

  • (Boolean)

#home_page?Boolean

Deprecated.

No longer used

If this link points to the home page of the site

Returns:

  • (Boolean)

#identifierString

Generated from either the slug, or the id of an object it points to or the external url

Returns:

  • (String)

#labelString

Returns:

  • (String)

#nested_child_active?Boolean

If any of it's descendants is the active link

Returns:

  • (Boolean)

#open_in_new_tabBoolean

Should the link open in a new tab?

Returns:

  • (Boolean)

#pagePageDrop

This is only present if the link points to a site's page

Returns:

#typeString

One of 'home', 'page', 'catalog', 'product_category', 'product', 'list', 'blog', 'members', 'external', 'support', 'terms', 'course', 'site_group', 'page_anchor'

Returns:

  • (String)

#urlString

The URL this link points to. If the link is of the 'page_group' #type, this will return the #url from the first link inside its #children.

Returns:

  • (String)