mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +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
|
BlogAdminSidebar: SilverStripe\Blog\Forms\BlogAdminSidebar
|
||||||
GridFieldAddByDBField: SilverStripe\Blog\Forms\GridField\GridFieldAddByDBField
|
GridFieldAddByDBField: SilverStripe\Blog\Forms\GridField\GridFieldAddByDBField
|
||||||
GridFieldBlogPostState: SilverStripe\Blog\Forms\GridField\GridFieldBlogPostState
|
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: SilverStripe\Blog\Widgets\BlogArchiveWidget
|
||||||
BlogArchiveWidget_Controller: SilverStripe\Blog\Widgets\BlogArchiveWidgetController
|
BlogArchiveWidget_Controller: SilverStripe\Blog\Widgets\BlogArchiveWidgetController
|
||||||
BlogCategoriesWidget: SilverStripe\Blog\Widgets\BlogCategoriesWidget
|
BlogCategoriesWidget: SilverStripe\Blog\Widgets\BlogCategoriesWidget
|
||||||
|
@ -10,7 +10,7 @@ use SilverStripe\Lumberjack\Forms\GridFieldSiteTreeState;
|
|||||||
* GridField config necessary for managing a SiteTree object.
|
* GridField config necessary for managing a SiteTree object.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack
|
class GridFieldConfigBlogPost extends GridFieldConfig_Lumberjack
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param null|int $itemsPerPage
|
* @param null|int $itemsPerPage
|
@ -4,7 +4,7 @@ namespace SilverStripe\Blog\Model;
|
|||||||
|
|
||||||
use Page;
|
use Page;
|
||||||
use SilverStripe\Blog\Admin\GridFieldCategorisationConfig;
|
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\CMS\Controllers\RootURLController;
|
||||||
use SilverStripe\Control\Controller;
|
use SilverStripe\Control\Controller;
|
||||||
use SilverStripe\Core\Convert;
|
use SilverStripe\Core\Convert;
|
||||||
@ -608,7 +608,7 @@ class Blog extends Page implements PermissionProvider
|
|||||||
*/
|
*/
|
||||||
public function getLumberjackGridFieldConfig()
|
public function getLumberjackGridFieldConfig()
|
||||||
{
|
{
|
||||||
return GridFieldConfig_BlogPost::create();
|
return GridFieldConfigBlogPost::create();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,9 +3,7 @@
|
|||||||
namespace SilverStripe\Blog\Model;
|
namespace SilverStripe\Blog\Model;
|
||||||
|
|
||||||
use SilverStripe\Assets\Image;
|
use SilverStripe\Assets\Image;
|
||||||
use SilverStripe\Blog\Forms\GridField\GridFieldConfig_BlogPost;
|
use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost;
|
||||||
use SilverStripe\Blog\Model\BlogPost;
|
|
||||||
use SilverStripe\Core\Manifest\ModuleLoader;
|
|
||||||
use SilverStripe\Forms\FieldList;
|
use SilverStripe\Forms\FieldList;
|
||||||
use SilverStripe\Forms\GridField\GridField;
|
use SilverStripe\Forms\GridField\GridField;
|
||||||
use SilverStripe\Forms\Tab;
|
use SilverStripe\Forms\Tab;
|
||||||
@ -122,7 +120,7 @@ class BlogMemberExtension extends DataExtension
|
|||||||
'BlogPosts',
|
'BlogPosts',
|
||||||
_t(__CLASS__ . '.BLOGPOSTS', 'Blog Posts'),
|
_t(__CLASS__ . '.BLOGPOSTS', 'Blog Posts'),
|
||||||
$this->owner->BlogPosts(),
|
$this->owner->BlogPosts(),
|
||||||
GridFieldConfig_BlogPost::create()
|
GridFieldConfigBlogPost::create()
|
||||||
);
|
);
|
||||||
|
|
||||||
$tab->Fields()->add($gridField);
|
$tab->Fields()->add($gridField);
|
||||||
|
Loading…
Reference in New Issue
Block a user