getPath() public method

public getPath ( ) : string
return string
Example #1
0
 /**
  * @param Entry $node
  * @param Config $params
  * @return \Todaymade\Daux\Format\Base\Page
  */
 public function generateOne(Entry $node, Config $params)
 {
     if ($node instanceof Raw) {
         return new RawPage($node->getPath());
     }
     if ($node instanceof ComputedRaw) {
         return new ComputedRawPage($node);
     }
     $params['request'] = $node->getUrl();
     return ContentPage::fromFile($node, $params, $this->daux->getContentTypeHandler()->getType($node));
 }