Craft 3 Class Reference

Class craft\helpers\Path

Inheritance
craft\helpers\Path
Available since version
3.0
Source Code
https://github.com/craftcms/cms/blob/master/src/helpers/Path.php

Class Path

Public Methods
Method Description Defined By
ensurePathIsContained() Ensures that a relative path never goes deeper than its root directory. craft\helpers\Path

Method Details

ensurePathIsContained() public static method #

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

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