public function getMainContentClasses(array $additionalClasses = null): string
    {
        $classes = ['controller'];
        if (!empty($additionalClasses)) {
            $classes = Hash::merge($classes, $additionalClasses);
        }
        $classes[] = Inflector::underscore($this->_View->request->controller) . '-' . Inflector::underscore($this->_View->request->action);

        return h(implode(' ', $classes));
    }
public function getMainContentClasses(array $additionalClasses = null): string
    {
        $classes = ['controller'];
        if (!empty($additionalClasses)) {
            $classes = Hash::merge($classes, $additionalClasses);
        }
        $classes[] = Inflector::underscore($this->_View->request->controller) . '-' . Inflector::underscore($this->_View->request->action);

        return h(implode(' ', $classes));
    }
public function getMainContentClasses ( array $ additionalClasses = null ) : string { $ classes = [ 'controller' ] ; if ( ! empty ( $ additionalClasses ) ) { $ classes = Hash :: merge ( $ classes , $ additionalClasses ) ; } $ classes [ ] = Inflector :: underscore ( $ this -> _View -> request -> controller ) . '-' . Inflector :: underscore ( $ this -> _View -> request -> action ) ; return h ( implode ( ' ' , $ classes ) ) ; }
Constructs the classes for the element that represents the frontend controller's DOM
reference.

@param array $additionalClasses optional classes to add
@return string
Constructs the classes for the element that represents the frontend controller s DOM reference .