function BlockBaseTest::providerTestGetMachineNameSuggestion

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php \Drupal\Tests\Core\Block\BlockBaseTest::providerTestGetMachineNameSuggestion()
  2. 10 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 46

Class

BlockBaseTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Block%21BlockBase.php/class/BlockBase/9" title="Defines a base block implementation that most blocks plugins will extend." class="local">\Drupal\Core\Block\BlockBase</a> @group block

Namespace

Drupal\Tests\Core\Block

Code

public function providerTestGetMachineNameSuggestion() {
    return [
        [
            'Admin label',
            'adminlabel',
        ],
        [
            'über åwesome',
            'uberawesome',
        ],
    ];
}

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