Msieprawski\ResourceTable\ResourceTable::_addCustomAttributes PHP Method

_addCustomAttributes() private static method

Sets custom configuration (if set) on given Collection
private static _addCustomAttributes ( Collection $collection ) : Collection
$collection Msieprawski\ResourceTable\Generators\Collection
return Msieprawski\ResourceTable\Generators\Collection
    private static function _addCustomAttributes(Collection $collection)
    {
        if (self::$_customPaginationPresenter) {
            $collection->setPaginationPresenter(self::$_customPaginationPresenter);
        }
        if (self::$_customView) {
            $collection->view(self::$_customView);
        }
        if (self::$_customCustomView) {
            $collection->customView(self::$_customCustomView);
        }
        if (self::$_customPaginate) {
            $collection->paginate(self::$_customPaginate);
        }
        if (self::$_customPerPage) {
            $collection->perPage(self::$_customPerPage);
        }
        if (self::$_customPage) {
            $collection->page(self::$_customPage);
        }
        if (self::$_customFilter) {
            $collection->filter(self::$_customFilter);
        }
        if (self::$_rendererNamespace) {
            $collection->setRendererNamespace(self::$_rendererNamespace);
        }
        return $collection;
    }