Skip to content

Commit

Permalink
Merge pull request #50 from siada/patch-1
Browse files Browse the repository at this point in the history
update SeoField to use FieldTypeBase
  • Loading branch information
bobdenotter committed Jun 23, 2017
2 parents f8cda67 + 3d02c13 commit 1bc6274
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/SeoField.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,33 @@

namespace Bolt\Extension\BobdenOtter\Seo;

use Bolt\Storage\Field\FieldInterface;
use Bolt\Storage\EntityManager;
use Bolt\Storage\Field\Type\FieldTypeBase;
use Bolt\Storage\QuerySet;

class SeoField implements FieldInterface
class SeoField extends FieldTypeBase
{
public function getName()
{
return 'seo';
}

public function getTemplate()
public function getStorageType()
{
return '_seo_extension_field.twig';
return 'text';
}

public function getStorageType()
public function getTemplate()
{
return 'text';
return '_seo_extension_field.twig';
}

public function getStorageOptions()
{
return ['default' => null, 'notnull' => false];
return [
'default' => null,
'notnull' => false
];
}
}

0 comments on commit 1bc6274

Please sign in to comment.