src/Gzero/Cms/ViewModels/ContentViewModel.php
public function ancestorsNames()
    {
        $ancestors = explode('/', array_get($this->route, 'path'));

        if (empty($ancestors)) {
            return null;
        }

        array_pop($ancestors);

        return array_map('ucfirst', $ancestors);
    }
public function ancestorsNames()
    {
        $ancestors = explode('/', array_get($this->route, 'path'));

        if (empty($ancestors)) {
            return null;
        }

        array_pop($ancestors);

        return array_map('ucfirst', $ancestors);
    }
public function ancestorsNames ( ) { $ ancestors = explode ( '/' , array_get ( $ this -> route , 'path' ) ) ; if ( empty ( $ ancestors ) ) { return null ; } array_pop ( $ ancestors ) ; return array_map ( 'ucfirst' , $ ancestors ) ; }
This function returns names of all ancestors based on route path

@return array ancestors names
This function returns names of all ancestors based on route path