API Rename GridFieldConfig so it has no underscore in the class name

This commit is contained in:
Raissa North 2018-01-29 15:57:17 +13:00
parent ac5a736542
commit b4d7530082
4 changed files with 6 additions and 8 deletions

View File

@ -20,7 +20,7 @@ mappings:
BlogAdminSidebar: SilverStripe\Blog\Forms\BlogAdminSidebar
GridFieldAddByDBField: SilverStripe\Blog\Forms\GridField\GridFieldAddByDBField
GridFieldBlogPostState: SilverStripe\Blog\Forms\GridField\GridFieldBlogPostState
GridFieldConfig_BlogPost: SilverStripe\Blog\Forms\GridField\GridFieldConfig_BlogPost
GridFieldConfig_BlogPost: SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost
BlogArchiveWidget: SilverStripe\Blog\Widgets\BlogArchiveWidget
BlogArchiveWidget_Controller: SilverStripe\Blog\Widgets\BlogArchiveWidgetController
BlogCategoriesWidget: SilverStripe\Blog\Widgets\BlogCategoriesWidget

View File

@ -10,7 +10,7 @@ use SilverStripe\Lumberjack\Forms\GridFieldSiteTreeState;
* GridField config necessary for managing a SiteTree object.
*
*/
class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack
class GridFieldConfigBlogPost extends GridFieldConfig_Lumberjack
{
/**
* @param null|int $itemsPerPage

View File

@ -4,7 +4,7 @@ namespace SilverStripe\Blog\Model;
use Page;
use SilverStripe\Blog\Admin\GridFieldCategorisationConfig;
use SilverStripe\Blog\Forms\GridField\GridFieldConfig_BlogPost;
use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost;
use SilverStripe\CMS\Controllers\RootURLController;
use SilverStripe\Control\Controller;
use SilverStripe\Core\Convert;
@ -608,7 +608,7 @@ class Blog extends Page implements PermissionProvider
*/
public function getLumberjackGridFieldConfig()
{
return GridFieldConfig_BlogPost::create();
return GridFieldConfigBlogPost::create();
}
/**

View File

@ -3,9 +3,7 @@
namespace SilverStripe\Blog\Model;
use SilverStripe\Assets\Image;
use SilverStripe\Blog\Forms\GridField\GridFieldConfig_BlogPost;
use SilverStripe\Blog\Model\BlogPost;
use SilverStripe\Core\Manifest\ModuleLoader;
use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\GridField\GridField;
use SilverStripe\Forms\Tab;
@ -122,7 +120,7 @@ class BlogMemberExtension extends DataExtension
'BlogPosts',
_t(__CLASS__ . '.BLOGPOSTS', 'Blog Posts'),
$this->owner->BlogPosts(),
GridFieldConfig_BlogPost::create()
GridFieldConfigBlogPost::create()
);
$tab->Fields()->add($gridField);