You are here

public function FeedsEnclosure::getLocalValue in Feeds 8.2

Use this method instead of FeedsElement::getValue() to get the file name transformed for better local saving (underscores instead of spaces)

Return value

Value with space characters changed to underscores.

See also

FeedsElement::getValue()

1 call to FeedsEnclosure::getLocalValue()
FeedsEnclosure::getFile in lib/Drupal/feeds/FeedsEnclosure.php
Get a Drupal file object of the enclosed resource, download if necessary.

File

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

Class

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

Namespace

Drupal\feeds

Code

public function getLocalValue() {
  return str_replace(' ', '_', $this
    ->getValue());
}