You are here

public function RestfulException::getInstance in RESTful 7.2

Get the URL to the error for the particular case.

Return value

string The url or NULL if empty.

File

src/Exception/RestfulException.php, line 112
Contains \Drupal\restful\Exception\RestfulException.

Class

RestfulException

Namespace

Drupal\restful\Exception

Code

public function getInstance() {

  // Handle all instances using the advanced help module.
  if (!module_exists('advanced_help') || empty($this->instance)) {
    return NULL;
  }
  return url($this->instance, array(
    'absolute' => TRUE,
  ));
}