1237. Class

1237.1. Zend\View\Helper\Navigation\Breadcrumbs

Helper for printing breadcrumbs

1237.1.1. Methods

1237.1.1.1. __invoke

__invoke()

Helper entry point

Parameters:string|AbstractContainer – container to operate on
Return type:Breadcrumbs

1237.1.1.2. setSeparator

setSeparator()

Sets breadcrumb separator

Parameters:string – separator string
Return type:Breadcrumbs fluent interface, returns self

1237.1.1.3. getSeparator

getSeparator()

Returns breadcrumb separator

Return type:string breadcrumb separator

1237.1.1.4. setLinkLast

setLinkLast()

Sets whether last page in breadcrumbs should be hyperlinked

Parameters:bool – whether last page should be hyperlinked
Return type:Breadcrumbs fluent interface, returns self

1237.1.1.5. getLinkLast

getLinkLast()

Returns whether last page in breadcrumbs should be hyperlinked

Return type:bool whether last page in breadcrumbs should be hyperlinked

1237.1.1.6. setPartial

setPartial()

Sets which partial view script to use for rendering menu

Parameters:string|array – partial view script or null. If an array is given, it is expected to contain two values; the partial view script to use, and the module where the script can be found.
Return type:Breadcrumbs fluent interface, returns self

1237.1.1.7. getPartial

getPartial()

Returns partial view script to use for rendering menu

Return type:string|array|null

1237.1.1.8. renderStraight

renderStraight()

Renders breadcrumbs by chaining ‘a’ elements with the separator registered in the helper

Parameters:AbstractContainer – [optional] container to render. Default is to render the container registered in the helper.
Return type:string helper output

1237.1.1.9. renderPartial

renderPartial()

Renders the given $container by invoking the partial view helper

The container will simply be passed on as a model to the view script, so in the script it will be available in <code>$this->container</code>.

Parameters:
  • AbstractContainer – [optional] container to pass to view script. Default is to use the container registered in the helper.
  • string|array – [optional] partial view script to use. Default is to use the partial registered in the helper. If an array is given, it is expected to contain two values; the partial view script to use, and the module where the script can be found.
Return type:

string helper output

Throws :

ExceptionRuntimeException if no partial provided

Throws :

ExceptionInvalidArgumentException if partial is invalid array

1237.1.1.10. render

render()

Renders helper

Implements {@link HelperInterface::render()}.

Parameters:AbstractContainer – [optional] container to render. Default is to render the container registered in the helper.
Return type:string helper output