getPage() public method

Get information about a custom page.
public getPage ( string $file, integer $directoryId, string $cabin = '' ) : array
$file string
$directoryId integer
$cabin string
return array
Ejemplo n.º 1
0
 /**
  * Serve a file
  *
  * @param string $file
  * @param int $directoryId
  * @return bool
  */
 protected function serveFile(string $file, int $directoryId) : bool
 {
     $page = $this->pages->getPage($file, $directoryId);
     if (!empty($page)) {
         return $this->serveLatestVersion($page);
     }
     return false;
 }