public function FileItem::getUploadLocation in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::getUploadLocation()
Determines the URI for a file field.
Parameters
array $data: An array of token objects to pass to token_replace().
Return value
string An unsanitized file directory URI with tokens replaced. The result of the token replacement is then converted to plain text and returned.
See also
token_replace()
File
- core/
modules/ file/ src/ Plugin/ Field/ FieldType/ FileItem.php, line 269 - Contains \Drupal\file\Plugin\Field\FieldType\FileItem.
Class
- FileItem
- Plugin implementation of the 'file' field type.
Namespace
Drupal\file\Plugin\Field\FieldTypeCode
public function getUploadLocation($data = array()) {
return static::doGetUploadLocation($this
->getSettings(), $data);
}