public static function AgreementHandler::prefixPath in Agreement 3.0.x
Same name and namespace in other branches
- 8.2 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\agreementCode
public static function prefixPath($value) {
return $value ? '/' . $value : $value;
}