/** * Sets a collection. * * @param \Yosymfony\Spress\Core\ContentManager\Collection\CollectionInterface $collection */ public function setCollection(CollectionInterface $collection) { $this->collections[$collection->getName()] = $collection; }
private function getCollectionAttributes(CollectionInterface $collection) { $result = $collection->getAttributes(); $result['path'] = $collection->getPath(); return $result; }