You are here

function _check_path in Optimizely 8.0

Same name and namespace in other branches
  1. 8.3 optimizely.module \_check_path()
  2. 8 optimizely.module \_check_path()
2 calls to _check_path()
_lookup_path_alias in ./optimizely.module
These three functions are redundant with trait LookupPath, but I haven't been able to re-use the trait in this .module file.
_lookup_system_path in ./optimizely.module

File

./optimizely.module, line 248
Optimizely module

Code

function _check_path($path) {
  return $path[0] == '/' ? $path : '/' . $path;
}