src/GridFieldConfigurablePaginator.php
public function getPagerActions(array $controls, GridField $gridField)
    {
        $actions = array();

        foreach ($controls as $key => $arguments) {
            $action = GridField_FormAction::create(
                $gridField,
                'pagination_' . $key,
                $arguments['title'],
                'paginate',
                $arguments['args']
            );

            if (isset($arguments['extra-class'])) {
                $action->addExtraClass($arguments['extra-class']);
            }

            if (isset($arguments['disable-previous']) && $arguments['disable-previous']) {
                $action = $action->performDisabledTransformation();
            } elseif (isset($arguments['disable-next']) && $arguments['disable-next']) {
                $action = $action->performDisabledTransformation();
            }

            $actions[$key] = $action;
        }

        return $actions;
    }
public function getPagerActions(array $controls, GridField $gridField)
    {
        $actions = array();

        foreach ($controls as $key => $arguments) {
            $action = GridField_FormAction::create(
                $gridField,
                'pagination_' . $key,
                $arguments['title'],
                'paginate',
                $arguments['args']
            );

            if (isset($arguments['extra-class'])) {
                $action->addExtraClass($arguments['extra-class']);
            }

            if (isset($arguments['disable-previous']) && $arguments['disable-previous']) {
                $action = $action->performDisabledTransformation();
            } elseif (isset($arguments['disable-next']) && $arguments['disable-next']) {
                $action = $action->performDisabledTransformation();
            }

            $actions[$key] = $action;
        }

        return $actions;
    }
public function getPagerActions ( array $ controls , GridField $ gridField ) { $ actions = array ( ) ; foreach ( $ controls as $ key => $ arguments ) { $ action = GridField_FormAction :: create ( $ gridField , 'pagination_' . $ key , $ arguments [ 'title' ] , 'paginate' , $ arguments [ 'args' ] ) ; if ( isset ( $ arguments [ 'extra-class' ] ) ) { $ action -> addExtraClass ( $ arguments [ 'extra-class' ] ) ; } if ( isset ( $ arguments [ 'disable-previous' ] ) && $ arguments [ 'disable-previous' ] ) { $ action = $ action -> performDisabledTransformation ( ) ; } elseif ( isset ( $ arguments [ 'disable-next' ] ) && $ arguments [ 'disable-next' ] ) { $ action = $ action -> performDisabledTransformation ( ) ; } $ actions [ $ key ] = $ action ; } return $ actions ; }
Returns FormActions for each of the pagination actions, in an array

@param  array     $controls
@param  GridField $gridField
@return GridField_FormAction[]
Returns FormActions for each of the pagination actions in an array