public function getBreadcrumbs($lastLink = false)
{
if (true === $lastLink) {
$breadcrumbs = [$this->getOwner()->{$this->titleAttribute} => Yii::app()->createUrl('/store/category/view', ['path' => $this->path])];
} else {
$breadcrumbs = [$this->getOwner()->{$this->titleAttribute}];
}
$page = $this->getOwner();
$i = 50;
while ($i-- && $this->cached($page)->{$this->parentRelation}) {
$breadcrumbs[$page->{$this->parentRelation}->{$this->titleAttribute}] = Yii::app()->createUrl('/store/category/view', ['path' => $page->{$this->parentRelation}->path]);
$page = $page->{$this->parentRelation};
}
return array_reverse($breadcrumbs);
}