protected function BlockContentTranslationUITest::getEditValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block_content/src/Tests/BlockContentTranslationUITest.php \Drupal\block_content\Tests\BlockContentTranslationUITest::getEditValues()
Returns an edit array containing the values to be posted.
Overrides ContentTranslationUITestBase::getEditValues
File
- core/
modules/ block_content/ src/ Tests/ BlockContentTranslationUITest.php, line 118 - Contains \Drupal\block_content\Tests\BlockContentTranslationUITest.
Class
- BlockContentTranslationUITest
- Tests the block content translation UI.
Namespace
Drupal\block_content\TestsCode
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;
}