You are here

public function FormModeManagerUiTest::entityFormModeTestProvider in Form mode manager 8.2

Provides all parameters needed to test form display and form mode manager.

This Data provider are more generic as possible and are strongly, linked to this class test.

See also

\Drupal\Tests\form_mode_manager\Functional\FormModeManagerUiTest::testFieldFormFormModeManager()

File

tests/src/Functional/FormModeManagerUiTest.php, line 181

Class

FormModeManagerUiTest
Tests the Form mode manager user interfaces.

Namespace

Drupal\Tests\form_mode_manager\Functional

Code

public function entityFormModeTestProvider() {
  $data = [];
  $data[] = [
    [
      'users',
      NULL,
      'userFormMode',
    ],
    'admin/@type/create',
    "user/@id/edit",
    'timezone',
  ];
  $data[] = [
    [
      'nodes',
      'nodeTypeFmm1',
      'nodeFormMode',
    ],
    'node/add/@type',
    "node/@id/edit",
    'body[0][value]',
  ];
  $data[] = [
    [
      'blocks',
      'blockType',
      'blockFormMode',
    ],
    'block/add/@type',
    "block/@id",
    'info[0][value]',
  ];
  $data[] = [
    [
      'terms',
      'vocabulary',
      'taxonomyFormMode',
    ],
    'admin/structure/taxonomy/manage/@type/add',
    "taxonomy/term/@id/edit",
    'description[0][value]',
  ];
  return $data;
}