You are here

public function FormModeManagerRouteTest::providerEntityRouteInfos in Form mode manager 8

Provides test data for testAccess().

See also

\Drupal\Tests\form_mode_manager\Functional\FormModeManagerRouteTest::testFormModeManagerPlugin()

File

tests/src/Functional/FormModeManagerRouteTest.php, line 262

Class

FormModeManagerRouteTest
Tests the routes generated by form_mode_manager.

Namespace

Drupal\Tests\form_mode_manager\Functional

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;
}