/** * Return an array containing all extra vars. Those variables you can access in the Twig Templates via {{extras.*}}. */ public function extraVars() { return ['fileList' => BlockHelper::fileArrayUpload($this->getVarValue('files'))]; }
/** * Get the full array for the specific zaa-file-array-upload type * * ```php * 'fileList' => $this->zaaFileArrayUpload($this->getVarValue('files')), * ``` * * Each array item will have all file query item data and a caption key. * * @deprecated Will be removed in 1.0.0 * @param string|int $value The specific var or cfg fieldvalue. * @param boolean $returnObject Whether the storage object should be returned or an array. * @return array Returns an array in any case, even an empty array. */ protected function zaaFileArrayUpload($value, $returnObject = false) { trigger_error('Deprecated method ' . __METHOD__ . ' in ' . get_called_class() . ', use \\luya\\cms\\helpers\\BlockHelper::fileArrayUpload() instead.', E_USER_DEPRECATED); return BlockHelper::fileArrayUpload($value, $returnObject); }