protected function FormatterTestBase::getFieldType in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Plugin/Field/FieldFormatter/FormatterTestBase.php \Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatter\FormatterTestBase::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.
1 call to FormatterTestBase::getFieldType()
- FormatterTestBase::setUp in tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ FormatterTestBase.php
5 methods override FormatterTestBase::getFieldType()
- AuthorReferenceFormatterTest::getFieldType in tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ AuthorReferenceFormatterTest.php - Get the field type of the test field to create.
- ImageFormatterTest::getFieldType in tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ ImageFormatterTest.php - Get the field type of the test field to create.
- InteractiveFormatterTest::getFieldType in tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ InteractiveFormatterTest.php - Get the field type of the test field to create.
- TransformerFormatterTest::getFieldType in tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ TransformerFormatterTest.php - Get the field type of the test field to create.
- VideoFormatterTest::getFieldType in tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ VideoFormatterTest.php - Get the field type of the test field to create.
File
- tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ FormatterTestBase.php, line 114
Class
- FormatterTestBase
- Base class for common functionality between field formatter tests.
Namespace
Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatterCode
protected function getFieldType() {
return 'string';
}