1 translation.test TranslationTestCase::emptyNode($langcode)

Returns an empty node data structure.

Parameters

$langcode: The language code.

Return value

An empty node data structure.:

File

core/modules/translation/tests/translation.test, line 271
Tests for the Translation module.

Class

TranslationTestCase
Functional tests for the Translation module.

Code

function emptyNode($langcode) {
  return (object) array('nid' => NULL, 'langcode' => $langcode);
}