You are here

protected function InteractiveFormatterTest::getFieldType in Facebook Instant Articles 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Plugin/Field/FieldFormatter/InteractiveFormatterTest.php \Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatter\InteractiveFormatterTest::getFieldType()

Get the field type of the test field to create.

Most of the field formatters apply to string type fields. There are a couple exceptions, so child classes can override this method if need be.

Return value

string Machine name of a field type.

Overrides FormatterTestBase::getFieldType

File

tests/src/Kernel/Plugin/Field/FieldFormatter/InteractiveFormatterTest.php, line 34

Class

InteractiveFormatterTest
Tests the instant article interactive formatter.

Namespace

Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatter

Code

protected function getFieldType() {
  return 'string_long';
}