protected function row_actions($actions, $always_visible = false)
    {
        $action_count = count($actions);
        $i = 0;

        if (!$action_count) {
            return '';
        }

        $out = '<div class="' . ($always_visible ? 'row-actions-visible' : 'row-actions') . '">';

        foreach ($actions as $action => $link) {
            $i++;
            ($i == $action_count) ? $sep = '' : $sep = ' | ';
            $out .= "<span class='$action'>$link$sep</span>";
        }

        $out .= '</div>';

        return $out;
    }
protected function row_actions($actions, $always_visible = false)
    {
        $action_count = count($actions);
        $i = 0;

        if (!$action_count) {
            return '';
        }

        $out = '<div class="' . ($always_visible ? 'row-actions-visible' : 'row-actions') . '">';

        foreach ($actions as $action => $link) {
            $i++;
            ($i == $action_count) ? $sep = '' : $sep = ' | ';
            $out .= "<span class='$action'>$link$sep</span>";
        }

        $out .= '</div>';

        return $out;
    }
protected function row_actions ( $ actions , $ always_visible = false ) { $ action_count = count ( $ actions ) ; $ i = 0 ; if ( ! $ action_count ) { return '' ; } $ out = '<div class="' . ( $ always_visible ? 'row-actions-visible' : 'row-actions' ) . '">' ; foreach ( $ actions as $ action => $ link ) { $ i ++ ; ( $ i == $ action_count ) ? $ sep = '' : $ sep = ' | ' ; $ out .= "<span class='$action'>$link$sep</span>" ; } $ out .= '</div>' ; return $ out ; }
Generate row actions div

@param  array $actions
@param  bool $always_visible
@return string
Generate row actions div