mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-07 08:38:45 +02:00
API Rename GridFieldConfig so it has no underscore in the class name
This commit is contained in:
parent
ac5a736542
commit
b4d7530082
@ -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
|
||||
|
@ -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
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user