diff --git a/core/modules/file/src/Plugin/Field/FieldType/FileItem.php b/core/modules/file/src/Plugin/Field/FieldType/FileItem.php index 0a9a3b36fc513887ad57aee5908854b915936d95..5ea2692ea1a1a64b423347e6739a1a8b288c7083 100644 --- a/core/modules/file/src/Plugin/Field/FieldType/FileItem.php +++ b/core/modules/file/src/Plugin/Field/FieldType/FileItem.php @@ -253,13 +253,13 @@ public static function validateMaxFilesize($element, FormStateInterface $form_st * Determines the URI for a file field. * * @param array $data - * An array of token objects to pass to token_replace(). + * An array of token objects to pass to Token::replace(). * * @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 token_replace() + * @see \Drupal\Core\Utility\Token::replace() */ public function getUploadLocation($data = array()) { return static::doGetUploadLocation($this->getSettings(), $data); @@ -271,11 +271,13 @@ public function getUploadLocation($data = array()) { * @param array $settings * The array of field settings. * @param array $data - * An array of token objects to pass to token_replace(). + * An array of token objects to pass to Token::replace(). * * @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'], '/');