You are here

public function FormModeManagerRouteTest::providerEntityRouteInfos in Form mode manager 8.2

Provides test data for testFormModeMangerPlugin().

See also

self::testFormModeManagerPlugin()

File

tests/src/Kernel/FormModeManagerRouteTest.php, line 47

Class

FormModeManagerRouteTest
Tests the routes generated by form_mode_manager.

Namespace

Drupal\Tests\form_mode_manager\Kernel

Code

public function providerEntityRouteInfos() {
  $data = [];
  $data[] = [
    'node',
    'add_form',
    'node.add',
  ];
  $data[] = [
    'node',
    'edit_form',
    'entity.node.edit_form',
  ];
  $data[] = [
    'user',
    'add_form',
    'user.register',
  ];
  $data[] = [
    'user',
    'edit_form',
    'entity.user.edit_form',
  ];
  $data[] = [
    'user',
    'admin_add',
    'user.admin_create',
  ];
  $data[] = [
    'block_content',
    'add_form',
    'block_content.add_form',
  ];
  $data[] = [
    'block_content',
    'edit_form',
    'entity.block_content.edit_form',
  ];
  $data[] = [
    'taxonomy_term',
    'add_form',
    'entity.taxonomy_term.add_form',
  ];
  $data[] = [
    'taxonomy_term',
    'edit_form',
    'entity.taxonomy_term.edit_form',
  ];
  $data[] = [
    'media',
    'add_form',
    'entity.media.add_form',
  ];
  $data[] = [
    'media',
    'edit_form',
    'entity.media.edit_form',
  ];
  return $data;
}