Returns an empty node data structure.
Parameters
$langcode:
The language code.
Return value
An empty node data structure.
File
- drupal/core/modules/translation/lib/Drupal/translation/Tests/TranslationTest.php, line 300
- Definition of Drupal\translation\Tests\TranslationTest.
Class
- TranslationTest
- Functional tests for the Translation module.
Namespace
Drupal\translation\Tests
Code
function emptyNode($langcode) {
return (object) array(
'nid' => NULL,
'langcode' => $langcode,
);
}