mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Update src/Model/BlogPostFeaturedExtension.php
Co-Authored-By: spekulatius <spekulatius@users.noreply.github.com>
This commit is contained in:
parent
fdeb101882
commit
c8914cc779
@ -26,7 +26,7 @@ class BlogPostFeaturedExtension extends DataExtension
|
|||||||
// Add the checkbox in.
|
// Add the checkbox in.
|
||||||
$fields->addFieldToTab(
|
$fields->addFieldToTab(
|
||||||
'Root.PostOptions',
|
'Root.PostOptions',
|
||||||
new CheckboxField("FeaturedInWidget", _t(__CLASS__ . '.FEATURED', 'Include Post in Feature Widget'))
|
CheckboxField::create('FeaturedInWidget', _t(__CLASS__ . '.FEATURED', 'Include Post in Feature Widget'))
|
||||||
);
|
);
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
|
Loading…
Reference in New Issue
Block a user