You are here

protected function MigrateTestCase::getValue in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/MigrateTestCase.php \Drupal\Tests\migrate\Unit\MigrateTestCase::getValue()
  2. 9 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.

File

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

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];
}