You are here

public function AppService::url in Forena Reports 8

1 method overrides AppService::url()
TestingAppService::url in tests/src/Unit/Mock/TestingAppService.php

File

src/AppService.php, line 386

Class

AppService

Namespace

Drupal\forena

Code

public function url($path, $options) {
  if (strpos($path, '/') !== 0 && strpos($path, 'http' == FALSE)) {
    $path = "/{$path}";
  }
  return Url::fromUserInput($path, $options)
    ->toString();
}