Devise\Pages\Interpreter\TagManager::getInstanceForCollection PHP Method

getInstanceForCollection() protected method

Get the instance of a collection. This is the CollectionSet with all instances attached
protected getInstanceForCollection ( array $tag ) : DvsCollectionSet
$tag array
return DvsCollectionSet
    protected function getInstanceForCollection($tag)
    {
        $collectionSet = $this->DvsCollectionSet->newInstance()->where('name', $tag['collection'])->first();
        $collectionSet = $collectionSet ?: $this->createCollectionSet($tag);
        return $collectionSet;
    }