protected function AuthorReferenceFormatterTest::getFieldType in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Plugin/Field/FieldFormatter/AuthorReferenceFormatterTest.php \Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatter\AuthorReferenceFormatterTest::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/ AuthorReferenceFormatterTest.php, line 45
Class
- AuthorReferenceFormatterTest
- Test the instant article author reference field formatter.
Namespace
Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatterCode
protected function getFieldType() {
return 'entity_reference';
}