protected function TestPluginTrait::getPluginType in Search API 8
Returns the plugin type of this object.
Equivalent to the last component of the namespace.
Return value
string The "short" plugin type.
4 calls to TestPluginTrait::getPluginType()
- TestPluginTrait::checkError in tests/
search_api_test/ src/ TestPluginTrait.php - Throws an exception if set in the Drupal state for the given method.
- TestPluginTrait::getMethodOverride in tests/
search_api_test/ src/ TestPluginTrait.php - Retrieves a possible override set for the given method.
- TestPluginTrait::getReturnValue in tests/
search_api_test/ src/ TestPluginTrait.php - Retrieves the value to return for a certain method.
- TestPluginTrait::logMethodCall in tests/
search_api_test/ src/ TestPluginTrait.php - Logs a method call to the site state.
File
- tests/
search_api_test/ src/ TestPluginTrait.php, line 99
Class
- TestPluginTrait
- Provides common functionality for test plugins.
Namespace
Drupal\search_api_testCode
protected function getPluginType() {
if (!isset($this->pluginType)) {
$class = explode("\\", get_class($this));
array_pop($class);
$this->pluginType = array_pop($class);
}
return $this->pluginType;
}