protected function BlazyUnitTestTrait::getFormatterDefinition in Blazy 8
Same name and namespace in other branches
- 8.2 tests/src/Traits/BlazyUnitTestTrait.php \Drupal\Tests\blazy\Traits\BlazyUnitTestTrait::getFormatterDefinition()
Returns the field formatter definition along with settings.
Return value
array The field formatter settings.
4 calls to BlazyUnitTestTrait::getFormatterDefinition()
- BlazyAdminFormatterUnitTest::testGetSettingsSummary in tests/
src/ Unit/ Form/ BlazyAdminFormatterUnitTest.php - Tests the Blazy admin ::getSettingsSummary().
- BlazyEntityReferenceFormatterTest::testBuildPreview in tests/
src/ Kernel/ BlazyEntityReferenceFormatterTest.php - Tests Blazy preview.
- BlazyEntityReferenceFormatterTest::testFormatterDisplay in tests/
src/ Kernel/ BlazyEntityReferenceFormatterTest.php - Tests the Blazy formatter display.
- BlazyEntityReferenceFormatterTest::testFormatterSettingsForm in tests/
src/ Kernel/ BlazyEntityReferenceFormatterTest.php - Tests the Blazy formatter settings form.
File
- tests/
src/ Traits/ BlazyUnitTestTrait.php, line 191
Class
- BlazyUnitTestTrait
- A Trait common for Blazy Unit tests.
Namespace
Drupal\Tests\blazy\TraitsCode
protected function getFormatterDefinition() {
$defaults = $this
->getDefaultFormatterDefinition();
return empty($this->formatterDefinition) ? $defaults : array_merge($defaults, $this->formatterDefinition);
}