Skip to content

Commit

Permalink
update SeoField to use FieldTypeBase
Browse files Browse the repository at this point in the history
In bolt 3.3-beta3 a new interface FieldTypeInterface was introduced, and as of bolt 3.3 as a whole the FieldInterface no longer work. This update changes SeoField to use FieldTypeBase instead.
  • Loading branch information
siada authored Jun 22, 2017
1 parent f8cda67 commit 3d02c13
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 3d02c13

Please sign in to comment.