src/Charcoal/Admin/Ui/ActionContainerTrait.php
protected function parseActionCssClasses($classes, $action = null, $renderer = null)
    {
        if ($renderer === null) {
            $renderer = $this->getActionRenderer();
        }

        if (is_string($classes)) {
            $classes = explode(' ', $classes);
        } elseif (!is_array($classes)) {
            $classes = [];
        }
        $classes[] = 'btn';
        $classes[] = 'btn-'.$action['actionType'];
        $classes[] = $this->jsActionPrefix().'-'.$action['ident'];

        return $classes;
    }
protected function parseActionCssClasses($classes, $action = null, $renderer = null)
    {
        if ($renderer === null) {
            $renderer = $this->getActionRenderer();
        }

        if (is_string($classes)) {
            $classes = explode(' ', $classes);
        } elseif (!is_array($classes)) {
            $classes = [];
        }
        $classes[] = 'btn';
        $classes[] = 'btn-'.$action['actionType'];
        $classes[] = $this->jsActionPrefix().'-'.$action['ident'];

        return $classes;
    }
protected function parseActionCssClasses ( $ classes , $ action = null , $ renderer = null ) { if ( $ renderer === null ) { $ renderer = $ this -> getActionRenderer ( ) ; } if ( is_string ( $ classes ) ) { $ classes = explode ( ' ' , $ classes ) ; } elseif ( ! is_array ( $ classes ) ) { $ classes = [ ] ; } $ classes [ ] = 'btn' ; $ classes [ ] = 'btn-' . $ action [ 'actionType' ] ; $ classes [ ] = $ this -> jsActionPrefix ( ) . '-' . $ action [ 'ident' ] ; return $ classes ; }
Parse the given UI action CSS classes.

@param  mixed $classes  The action's CSS classes.
@param  mixed $action   The action structure.
@param  mixed $renderer The renderer.
@return array
Parse the given UI action CSS classes .