function PluginBaseTest::providerTestGetPluginId

Returns test data for testGetPluginId().

Return value

array An array of test cases, where each item contains a plugin ID and the expected plugin ID result.

File

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

Class

PluginBaseTest
Tests Drupal\Component\Plugin\PluginBase.

Namespace

Drupal\Tests\Component\Plugin

Code

public static 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.