function BlockLocalTasksTest::providerTestBlockAdminDisplay

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

Provides a list of routes to test.

File

core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php, line 86

Class

BlockLocalTasksTest
Tests block local tasks.

Namespace

Drupal\Tests\block\Unit\Menu

Code

public static function providerTestBlockAdminDisplay() {
    return [
        [
            'block.admin_display',
            [
                [
                    'block.admin_display',
                ],
                [
                    'block.admin_display_theme:test_b',
                    'block.admin_display_theme:test_c',
                ],
            ],
        ],
        [
            'block.admin_display_theme',
            [
                [
                    'block.admin_display',
                ],
                [
                    'block.admin_display_theme:test_b',
                    'block.admin_display_theme:test_c',
                ],
            ],
        ],
    ];
}

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