protected function LanguageWithFallbackTest::getItemIdForLanguage in Search API 8
Retrieves the test node's item ID for the given language.
Parameters
string $langcode: The language's code.
Return value
string The Search API item ID for the test node in the given language.
File
- tests/
src/ Kernel/ Processor/ LanguageWithFallbackTest.php, line 197
Class
- LanguageWithFallbackTest
- Tests the "Language (with fallback)" processor at a higher level.
Namespace
Drupal\Tests\search_api\Kernel\ProcessorCode
protected function getItemIdForLanguage($langcode) {
$nid = $this->node
->id();
return Utility::createCombinedId('entity:node', "{$nid}:{$langcode}");
}