FluidTYPO3\Vhs\ViewHelpers\Resource\CollectionViewHelper::render PHP Method

render() public method

Returns a specific collection referenced by uid.
public render ( integer $uid ) : mixed
$uid integer
return mixed
    public function render($uid)
    {
        if (null !== $uid) {
            /** @var \TYPO3\CMS\Core\Collection\AbstractRecordCollection $collection */
            $collection = $this->collectionRepository->findByUid($uid);
            if (null !== $collection) {
                $collection->loadContents();
            }
            return $collection;
        }
        return null;
    }