You are here

protected function BlazyUnitTestTrait::getDefaulEntityFormatterDefinition in Blazy 8

Same name and namespace in other branches
  1. 8.2 tests/src/Traits/BlazyUnitTestTrait.php \Drupal\Tests\blazy\Traits\BlazyUnitTestTrait::getDefaulEntityFormatterDefinition()

Returns the default field formatter definition.

Return value

array The default field formatter settings.

2 calls to BlazyUnitTestTrait::getDefaulEntityFormatterDefinition()
BlazyAdminExtendedUnitTest::testBuildSettingsForm in tests/src/Unit/Form/BlazyAdminExtendedUnitTest.php
Tests BlazyAdminExtended.
BlazyAdminFormatterUnitTest::testBuildSettingsForm in tests/src/Unit/Form/BlazyAdminFormatterUnitTest.php
@covers ::buildSettingsForm @covers ::openingForm @covers ::imageStyleForm @covers ::mediaSwitchForm @covers ::gridForm @covers ::breakpointsForm @covers ::closingForm @covers ::finalizeForm

File

tests/src/Traits/BlazyUnitTestTrait.php, line 170

Class

BlazyUnitTestTrait
A Trait common for Blazy Unit tests.

Namespace

Drupal\Tests\blazy\Traits

Code

protected function getDefaulEntityFormatterDefinition() {
  return [
    'nav' => TRUE,
    'overlays' => [
      'field_image' => 'Image',
    ],
    'vanilla' => TRUE,
    'optionsets' => [
      'default' => 'Default',
    ],
    'thumbnails' => TRUE,
    'thumbnail_effect' => [
      'grid',
      'hover',
    ],
    'thumbnail_style' => TRUE,
    'thumb_captions' => [
      'field_text' => 'Text',
    ],
    'thumb_positions' => TRUE,
    'caches' => TRUE,
  ];
}