public prefixLink ( string $name, string | null $link = null, boolean $active = false, string | null $icon = null ) : void | ||
$name | string | The text of the link |
$link | string | null | The link to render; set to null to render a separator |
$active | boolean | True if it's an active link |
$icon | string | null | Icon class (used by some renderers, like the Bootstrap renderer) |
리턴 | void |
public function prefixLink($name, $link = null, $active = false, $icon = null)
{
$linkDefinition = array('name' => $name, 'link' => $link, 'active' => $active, 'icon' => $icon);
array_unshift($this->linkbar, $linkDefinition);
}