protected function BlockContentTranslationUITest::getEditValues in Drupal 8
Same name and namespace in other branches
- 9 core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::getEditValues()
- 10 core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::getEditValues()
Returns an edit array containing the values to be posted.
Overrides ContentTranslationUITestBase::getEditValues
File
- core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTranslationUITest.php, line 120
Class
- BlockContentTranslationUITest
- Tests the block content translation UI.
Namespace
Drupal\Tests\block_content\FunctionalCode
protected function getEditValues($values, $langcode, $new = FALSE) {
$edit = parent::getEditValues($values, $langcode, $new);
foreach ($edit as $property => $value) {
if ($property == 'info') {
$edit['info[0][value]'] = $value;
unset($edit[$property]);
}
}
return $edit;
}