function ConfigEntityTypeTest::providerTestGetConfigPrefix

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::providerTestGetConfigPrefix()
  2. 10 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::providerTestGetConfigPrefix()
  3. 11.x core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::providerTestGetConfigPrefix()

Provides test data.

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php, line 135

Class

ConfigEntityTypeTest
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityType @group Config

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function providerTestGetConfigPrefix() {
    return [
        [
            [
                'provider' => 'node',
                'id' => 'node_type',
                'config_prefix' => 'type',
            ],
            'node.type',
        ],
        [
            [
                'provider' => 'views',
                'id' => 'view',
            ],
            'views.view',
        ],
    ];
}

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