You are here

protected function CsvController::getResourcesUrl in Feeds 8.3

Generates an absolute url to the resources folder.

Return value

string An absolute url to the resources folder, for example: http://www.example.com/modules/contrib/feeds/tests/resources

1 call to CsvController::getResourcesUrl()
CsvController::files in tests/modules/feeds_test_files/src/Controller/CsvController.php
Outputs a CSV file pointing to files.

File

tests/modules/feeds_test_files/src/Controller/CsvController.php, line 30

Class

CsvController
Generates CSV source files.

Namespace

Drupal\feeds_test_files\Controller

Code

protected function getResourcesUrl() {
  $resources_path = drupal_get_path('module', 'feeds') . '/tests/resources';
  return Url::fromUri('internal:/' . $resources_path)
    ->setAbsolute()
    ->toString();
}