Page::getRootline() 

\nn\t3::Page()->getRootline($pid = NULL); 

Get rootline for given PID

\nn\t3::Page()->getRootline();
Copied!

| @return array

Source Code 

public function getRootline( $pid = null )
{
	if (!$pid) $pid = $this->getPid();
	if (!$pid) return [];
	try {
		$rootLine = GeneralUtility::makeInstance(RootlineUtility::class, $pid);
		return $rootLine->get() ?: [];
	} catch ( \Exception $e ) {
		return [];
	}
}
Copied!