public function ConfigEntityRevisionsRevertFormBase::updateConfigEntity in Config Entity Revisions 8.2
Same name and namespace in other branches
- 8 src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::updateConfigEntity()
- 1.x src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::updateConfigEntity()
Update config entity.
1 call to ConfigEntityRevisionsRevertFormBase::updateConfigEntity()
- ConfigEntityRevisionsRevertFormBase::submitForm in src/
ConfigEntityRevisionsRevertFormBase.php - Form submission handler.
1 method overrides ConfigEntityRevisionsRevertFormBase::updateConfigEntity()
- ConfigEntityRevisionsRevertFormTest3::updateConfigEntity in tests/
src/ Unit/ ConfigEntityRevisionsRevertFormBaseTest.php - Apply the revision insert/update.
File
- src/
ConfigEntityRevisionsRevertFormBase.php, line 258
Class
- ConfigEntityRevisionsRevertFormBase
- Class ConfigEntityRevisionsRevertFormBase.
Namespace
Drupal\config_entity_revisionsCode
public function updateConfigEntity() {
$this->configEntity = $this->configEntity
->contentEntityStorage()
->getConfigEntity($this->revision);
$this->configEntity
->save();
}