You are here

public function FeedsEnclosure::getUrlEncodedValue in Feeds 8.2

Use this method instead of FeedsElement::getValue() when fetching the file from the URL.

Return value

Value with encoded space characters to safely fetch the file from the URL.

See also

FeedsElement::getValue()

1 call to FeedsEnclosure::getUrlEncodedValue()
FeedsEnclosure::getContent in lib/Drupal/feeds/FeedsEnclosure.php

File

lib/Drupal/feeds/FeedsEnclosure.php, line 41

Class

FeedsEnclosure
Enclosure element, can be part of the result array.

Namespace

Drupal\feeds

Code

public function getUrlEncodedValue() {
  return str_replace(' ', '%20', $this
    ->getValue());
}