/** * Type fetching method, based on the type that softRefParserObj returns * * @param array $value Reference properties * @param string $type Current type * @param string $key Validator hook name * @return string fetched type */ public function fetchType($value, $type, $key) { if (StringUtility::beginswith(strtolower($value['tokenValue']), 'file:')) { $type = 'file'; } return $type; }