diff -u b/core/modules/file/src/Plugin/Field/FieldType/FileItem.php b/core/modules/file/src/Plugin/Field/FieldType/FileItem.php --- b/core/modules/file/src/Plugin/Field/FieldType/FileItem.php +++ b/core/modules/file/src/Plugin/Field/FieldType/FileItem.php @@ -259,7 +259,7 @@ * An unsanitized file directory URI with tokens replaced. The result of * the token replacement is then converted to plain text and returned. * - * @see Token::replace() + * @see \Drupal\Core\Utility\Token::replace() */ public function getUploadLocation($data = array()) { return static::doGetUploadLocation($this->getSettings(), $data); @@ -276,6 +276,8 @@ * @return string * An unsanitized file directory URI with tokens replaced. The result of * the token replacement is then converted to plain text and returned. + * + * @see \Drupal\Core\Utility\Token::replace() */ protected static function doGetUploadLocation(array $settings, $data = []) { $destination = trim($settings['file_directory'], '/');