You are here

protected function TestFilteredPluginManager::getType in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\TestFilteredPluginManager::getType()
  2. 9 core/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\TestFilteredPluginManager::getType()

A string identifying the plugin type.

This string should be unique and generally will correspond to the string used by the discovery, e.g. the annotation class or the YAML file name.

Return value

string A string identifying the plugin type.

Overrides FilteredPluginManagerTrait::getType

File

core/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php, line 113

Class

TestFilteredPluginManager
Class that allows testing the trait.

Namespace

Drupal\Tests\Core\Plugin

Code

protected function getType() {
  return 'the_type';
}