public function getFullPath()
{
$this->setElement();
//don't give unpublished elements in frontend
if (Document::doHideUnpublished() and !Element\Service::isPublished($this->element)) {
return false;
}
if ($this->element instanceof Element\ElementInterface) {
return $this->element->getFullPath();
}
return;
}