Update src/Model/BlogPostFeaturedExtension.php

Co-Authored-By: spekulatius <spekulatius@users.noreply.github.com>
This commit is contained in:
Robbie Averill 2019-04-12 10:35:41 +07:00 committed by Robbie Averill
parent fdeb101882
commit c8914cc779

View File

@ -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;