Ejemplo n.º 1
0
 /**
  * Return an index of existing fields.
  *
  * @param FieldTableBuilder $table
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function index(FieldTableBuilder $table, PageModel $pages)
 {
     $table->setStream($pages->getStream());
     return $table->render();
 }
Ejemplo n.º 2
0
 /**
  * Find a page by it's path.
  *
  * @param $path
  * @return PageInterface|null
  */
 public function findByPath($path)
 {
     return $this->model->where('path', $path)->first();
 }