You are here

public function NameFieldTest::nameGetFieldStorageSettingsCheckboxes in Name Field 8

Helper function to get the field storage checkbox settings.

Return value

array The settings.

1 call to NameFieldTest::nameGetFieldStorageSettingsCheckboxes()
NameFieldTest::testFieldEntry in tests/src/Functional/NameFieldTest.php
The most basic test.

File

tests/src/Functional/NameFieldTest.php, line 374

Class

NameFieldTest
Various tests on creating a name field on a node.

Namespace

Drupal\Tests\name\Functional

Code

public function nameGetFieldStorageSettingsCheckboxes() {
  return [
    'settings[components][title]' => TRUE,
    'settings[components][given]' => TRUE,
    'settings[components][middle]' => TRUE,
    'settings[components][family]' => TRUE,
    'settings[components][generational]' => TRUE,
    'settings[components][credentials]' => TRUE,
    'settings[minimum_components][title]' => FALSE,
    'settings[minimum_components][given]' => TRUE,
    'settings[minimum_components][middle]' => FALSE,
    'settings[minimum_components][family]' => TRUE,
    'settings[minimum_components][generational]' => FALSE,
    'settings[minimum_components][credentials]' => FALSE,
    'settings[sort_options][title]' => TRUE,
    'settings[sort_options][generational]' => FALSE,
  ];
}