function LanguageNegotiationTestBase::getPluginClass
Same name in other branches
- 10 core/modules/language/tests/src/Unit/Plugin/LanguageNegotiation/LanguageNegotiationTestBase.php \Drupal\Tests\language\Unit\Plugin\LanguageNegotiation\LanguageNegotiationTestBase::getPluginClass()
Returns the plugin class to use for creating the language negotiation plugin.
Return value
string The plugin class name.
1 call to LanguageNegotiationTestBase::getPluginClass()
- LanguageNegotiationTestBase::createLanguageNegotiationPlugin in core/
modules/ language/ tests/ src/ Unit/ Plugin/ LanguageNegotiation/ LanguageNegotiationTestBase.php - Creates a @LanguageNegotiation plugin using the factory ::create method.
1 method overrides LanguageNegotiationTestBase::getPluginClass()
- LanguageNegotiationContentEntityTest::getPluginClass in core/
modules/ language/ tests/ src/ Unit/ Plugin/ LanguageNegotiation/ LanguageNegotiationContentEntityTest.php - Returns the plugin class to use for creating the language negotiation plugin.
File
-
core/
modules/ language/ tests/ src/ Unit/ Plugin/ LanguageNegotiation/ LanguageNegotiationTestBase.php, line 23
Class
- LanguageNegotiationTestBase
- Base class used for testing the various LanguageNegotiation plugins.
Namespace
Drupal\Tests\language\Unit\Plugin\LanguageNegotiationCode
protected abstract function getPluginClass() : string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.