Skip to content

Commit

Permalink
setup test extension
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarholt committed Jun 23, 2024
1 parent 1c524ff commit 5ce7c9b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Extensions/AISeoExtension.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\CheckboxField;
use PlasticStudio\SEO\Model\Extension\SeoExtension;

class AISeoExtension extends SeoExtension
{
private static $db = [
'Test' => 'Boolean',
];

public function updateCMSFields(FieldList $fields)
{
$fields = parent::updateCMSFields($fields);

$fields->addFieldToTab('Root.SEO', CheckboxField::create('Test', 'Test'));

return $fields;
}
}

0 comments on commit 5ce7c9b

Please sign in to comment.