function TranslationTest::emptyNode

Returns an empty node data structure.

Parameters

$langcode: The language code.

Return value

An empty node data structure.

1 call to TranslationTest::emptyNode()
TranslationTest::testLanguageSwitcherBlockIntegration in drupal/core/modules/translation/lib/Drupal/translation/Tests/TranslationTest.php
Tests that the language switcher block alterations work as intended.

File

drupal/core/modules/translation/lib/Drupal/translation/Tests/TranslationTest.php, line 296
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,
  );
}