You are here

public static function AgreementHandler::prefixPath in Agreement 8.2

Same name and namespace in other branches
  1. 3.0.x src/AgreementHandler.php \Drupal\agreement\AgreementHandler::prefixPath()

Adds leading slash to a path string.

Parameters

string $value: The value.

Return value

string The new value.

Overrides AgreementHandlerInterface::prefixPath

File

src/AgreementHandler.php, line 202

Class

AgreementHandler
Agreement handler provides methods for looking up agreements.

Namespace

Drupal\agreement

Code

public static function prefixPath($value) {
  return $value ? '/' . $value : $value;
}