Path

Type
Class
Namespace
craft\helpers
Inherits
craft\helpers\Path
Since
3.0

Class Path

View source

Public Methods

MethodDescription
ensurePathIsContained()Ensures that a relative path never goes deeper than its root directory.

ensurePathIsContained()

Ensures that a relative path never goes deeper than its root directory.

View source

Arguments

Returns

boolean

Signature

public static boolean ensurePathIsContained ( \craft\helpers\string $path )