public function getSegments($append_langcode = false, $path = '')
    {
        if (empty($path)) {
            $path = $this->path($append_langcode);
        }

        return explode('/', trim($path, '/'));
    }
public function getSegments($append_langcode = false, $path = '')
    {
        if (empty($path)) {
            $path = $this->path($append_langcode);
        }

        return explode('/', trim($path, '/'));
    }
public function getSegments ( $ append_langcode = false , $ path = '' ) { if ( empty ( $ path ) ) { $ path = $ this -> path ( $ append_langcode ) ; } return explode ( '/' , trim ( $ path , '/' ) ) ; }
Returns an array of path components
@param boolean $append_langcode
@param string $path
@return array
Returns an array of path components