Elgg  Version 5.1
Functions
breadcrumbs.php File Reference

Go to the source code of this file.

Functions

 elgg_push_breadcrumb (string $text, string|false $href=false)
 Breadcrumbs. More...
 
 elgg_push_entity_breadcrumbs (\ElggEntity $entity, bool $link_self=null)
 Resolves and pushes entity breadcrumbs based on named routes. More...
 
 elgg_push_collection_breadcrumbs (string $entity_type, string $entity_subtype,\ElggEntity $container=null, bool $friends=false)
 Resolves and pushes collection breadcrumbs for a container. More...
 

Function Documentation

elgg_push_breadcrumb ( string  $text,
string|false  $href = false 
)

Breadcrumbs.

Adds a breadcrumb to the breadcrumbs stack.

Parameters
string$textThe title to display. During rendering this is HTML encoded.
false | string$hrefOptional. The href for the title. During rendering links are normalized via elgg_normalize_url().
Returns
void
Since
1.8.0

Definition at line 16 of file breadcrumbs.php.

elgg_push_collection_breadcrumbs ( string  $entity_type,
string  $entity_subtype,
\ElggEntity  $container = null,
bool  $friends = false 
)

Resolves and pushes collection breadcrumbs for a container.

Parameters
string$entity_typeEntity type in the collection
string$entity_subtypeEntity subtype in the collection
ElggEntity | null$containerContainer/page owner entity
bool$friendsCollection belongs to container's friends?
Returns
void

Definition at line 63 of file breadcrumbs.php.

elgg_push_entity_breadcrumbs ( \ElggEntity  $entity,
bool  $link_self = null 
)

Resolves and pushes entity breadcrumbs based on named routes.

Parameters
\ElggEntity$entityEntity
bool$link_self(deprecated) Add a link to the entity
Returns
void

Definition at line 34 of file breadcrumbs.php.