Back to FileLayout class

Method removeIncludePaths

public self
removeIncludePaths
(mixed $paths)
Remove one or more paths to exclude in layout search
Parameters
  • string $paths The path or array of paths to remove for the layout search
Returns
  • self
Since
  • 3.2
Class: FileLayout
Project: Joomla

Method removeIncludePaths - Source code

/**
 * Remove one or more paths to exclude in layout search
 *
 * @param   string  $paths  The path or array of paths to remove for the layout search
 *
 * @return  self
 *
 * @since   3.2
 */
public function removeIncludePaths($paths)
{
    if (!empty($paths)) {
        $paths = (array) $paths;
        $this->includePaths = array_diff($this->includePaths, $paths);
    }
    return $this;
}