function BlockBaseTest::providerTestGetMachineNameSuggestion

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php \Drupal\Tests\Core\Block\BlockBaseTest::providerTestGetMachineNameSuggestion()
  2. 8.9.x core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php \Drupal\Tests\Core\Block\BlockBaseTest::providerTestGetMachineNameSuggestion()
  3. 11.x core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php \Drupal\Tests\Core\Block\BlockBaseTest::providerTestGetMachineNameSuggestion()

Provides data for testGetMachineNameSuggestion().

File

core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php, line 50

Class

BlockBaseTest
@coversDefaultClass \Drupal\Core\Block\BlockBase @group block

Namespace

Drupal\Tests\Core\Block

Code

public static function providerTestGetMachineNameSuggestion() {
    return [
        [
            'Admin label',
            'adminlabel',
        ],
        // cspell:disable-next-line
[
            'über åwesome',
            'uberawesome',
        ],
    ];
}

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