Example #1
0
 /**
  * Get file object to the page.
  *
  * @return MarkdownFile|null
  */
 public function file()
 {
     if ($this->name) {
         return MarkdownFile::instance($this->filePath());
     }
     return null;
 }
Example #2
0
 /**
  * Get file object to the page.
  *
  * @return MarkdownFile|null
  */
 public function file()
 {
     if ($this->name) {
         // TODO: use CompiledMarkdownFile after fixing issues in it.
         return MarkdownFile::instance($this->filePath());
     }
     return null;
 }