function MigrateTestCase::getValue

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrateTestCase.php \Drupal\Tests\migrate\Unit\MigrateTestCase::getValue()
  2. 8.9.x core/modules/migrate/tests/src/Unit/MigrateTestCase.php \Drupal\Tests\migrate\Unit\MigrateTestCase::getValue()
  3. 11.x core/modules/migrate/tests/src/Unit/MigrateTestCase.php \Drupal\Tests\migrate\Unit\MigrateTestCase::getValue()

Gets the value on a row for a given key.

Parameters

array $row: The row information.

string $key: The key identifier.

Return value

mixed The value on a row for a given key.

1 call to MigrateTestCase::getValue()
MigrateTestCase::queryResultTest in core/modules/migrate/tests/src/Unit/MigrateTestCase.php
Tests a query.

File

core/modules/migrate/tests/src/Unit/MigrateTestCase.php, line 192

Class

MigrateTestCase
Provides setup and helper methods for Migrate module tests.

Namespace

Drupal\Tests\migrate\Unit

Code

protected function getValue($row, $key) {
    return $row[$key];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.