From 3d02c13b7323674374a3b9c532c9bde8df1fbf23 Mon Sep 17 00:00:00 2001 From: siada Date: Thu, 22 Jun 2017 14:57:04 +0100 Subject: [PATCH] update SeoField to use FieldTypeBase 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. --- src/SeoField.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/SeoField.php b/src/SeoField.php index 207665c..6c7426a 100755 --- a/src/SeoField.php +++ b/src/SeoField.php @@ -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 + ]; } } +