function ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay

Same name in other branches
  1. 9 core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php \Drupal\Tests\content_translation\Unit\Menu\ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay()
  2. 8.9.x core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php \Drupal\Tests\content_translation\Unit\Menu\ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay()
  3. 10 core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php \Drupal\Tests\content_translation\Unit\Menu\ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay()

Provides a list of routes to test.

File

core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php, line 58

Class

ContentTranslationLocalTasksTest
Tests content translation local tasks.

Namespace

Drupal\Tests\content_translation\Unit\Menu

Code

public static function providerTestBlockAdminDisplay() {
    return [
        [
            'entity.node.canonical',
            [
                [
                    'content_translation.local_tasks:entity.node.content_translation_overview',
                    'entity.node.canonical',
                    'entity.node.edit_form',
                    'entity.node.delete_form',
                    'entity.node.version_history',
                ],
            ],
        ],
        [
            'entity.node.content_translation_overview',
            [
                [
                    'content_translation.local_tasks:entity.node.content_translation_overview',
                    'entity.node.canonical',
                    'entity.node.edit_form',
                    'entity.node.delete_form',
                    'entity.node.version_history',
                ],
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.