src/View/Helper/DocumentHelper.php
public function getBodyClasses()
    {
        $prefix = ($this->request->getParam('prefix')) ? 'prefix-' . $this->request->getParam('prefix') : 'prefix-site';

        $classes = [
            $prefix,
            'theme-'    . Str::low($this->_View->theme),
            'plugin-'   . Str::low($this->_View->plugin),
            'view-'     . Str::low($this->_View->name),
            'tmpl-'     . Str::low($this->_View->template),
            'layout-'   . Str::low($this->_View->layout)
        ];

        $pass = (array) $this->request->getParam('pass');
        if (count($pass)) {
            $classes[] = 'item-id-' . array_shift($pass);
        }

        return implode(' ', $classes);
    }
public function getBodyClasses()
    {
        $prefix = ($this->request->getParam('prefix')) ? 'prefix-' . $this->request->getParam('prefix') : 'prefix-site';

        $classes = [
            $prefix,
            'theme-'    . Str::low($this->_View->theme),
            'plugin-'   . Str::low($this->_View->plugin),
            'view-'     . Str::low($this->_View->name),
            'tmpl-'     . Str::low($this->_View->template),
            'layout-'   . Str::low($this->_View->layout)
        ];

        $pass = (array) $this->request->getParam('pass');
        if (count($pass)) {
            $classes[] = 'item-id-' . array_shift($pass);
        }

        return implode(' ', $classes);
    }
public function getBodyClasses ( ) { $ prefix = ( $ this -> request -> getParam ( 'prefix' ) ) ? 'prefix-' . $ this -> request -> getParam ( 'prefix' ) : 'prefix-site' ; $ classes = [ $ prefix , 'theme-' . Str :: low ( $ this -> _View -> theme ) , 'plugin-' . Str :: low ( $ this -> _View -> plugin ) , 'view-' . Str :: low ( $ this -> _View -> name ) , 'tmpl-' . Str :: low ( $ this -> _View -> template ) , 'layout-' . Str :: low ( $ this -> _View -> layout ) ] ; $ pass = ( array ) $ this -> request -> getParam ( 'pass' ) ; if ( count ( $ pass ) ) { $ classes [ ] = 'item-id-' . array_shift ( $ pass ) ; } return implode ( ' ' , $ classes ) ; }
Get body classes by view data.

@return  string
Get body classes by view data .