The getHeaderLinks method is used to get the HeaderLinksList object that represents a list of ordered header links.
items_per_page
int
Number of items in a page of internal paginator. Parameter is optional. Default value is 10.
Returned value
The HeaderLinksList object.
Example
source{% set headerLinks = ObjectApi.getHeaderLinks() %}
{% for headerLink in headerLinks %}
<a href="{{ headerLink.url }}" title="{{ headerLink.title }}">
{{ headerLink.title }}
</a>
{% endfor %}
output<a href="/i/About-us/1" title="About us">
About us
</a>
<a href="/en_US/contact" title="Contact form">
Contact Form
</a>