Commit 0179304d authored by alexpott's avatar alexpott

Issue #2857258 by ritzz, Munavijayalakshmi, shashikant_chauhan, xjm: Replace...

Issue #2857258 by ritzz, Munavijayalakshmi, shashikant_chauhan, xjm: Replace documentation references to token_replace()
parent 75194e9c
......@@ -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'], '/');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment