function PluginBaseTest::providerTestGetPluginId

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::providerTestGetPluginId()
  2. 10 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::providerTestGetPluginId()
  3. 11.x core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::providerTestGetPluginId()

Returns test data for testGetPluginId().

Return value

array

File

core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php, line 32

Class

PluginBaseTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Component%21Plugin%21PluginBase.php/class/PluginBase/8.9.x" title="Base class for plugins wishing to support metadata inspection." class="local">\Drupal\Component\Plugin\PluginBase</a> @group Plugin

Namespace

Drupal\Tests\Component\Plugin

Code

public function providerTestGetPluginId() {
    return [
        [
            'base_id',
            'base_id',
        ],
        [
            'base_id:derivative',
            'base_id:derivative',
        ],
    ];
}

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