FluidTYPO3\Vhs\ViewHelpers\Resource\Record\AbstractRecordResourceViewHelper::getResources PHP Method

getResources() public method

public getResources ( array $record ) : array
$record array
return array
    public function getResources($record)
    {
        $field = $this->getField();
        if (false === isset($record[$field])) {
            throw new Exception('The "field" argument was not found on the selected record.', 1384612728);
        }
        if (true === empty($record[$field])) {
            return [];
        }
        return GeneralUtility::trimExplode(',', $record[$field]);
    }