You are here

protected function MigrateSqlSourceTestCase::getValue in Drupal 8

Gets the value on a row for a given key.

Parameters

\Drupal\migrate\Row $row: The row identifier.

string $key: The key identifier.

Return value

mixed The value on a row for a given key.

Overrides MigrateTestCase::getValue

File

core/modules/migrate/tests/src/Unit/MigrateSqlSourceTestCase.php, line 174

Class

MigrateSqlSourceTestCase
Base class for Migrate module source unit tests.

Namespace

Drupal\Tests\migrate\Unit

Code

protected function getValue($row, $key) {
  return $row
    ->getSourceProperty($key);
}