You are here

public function ConfigRevertInterface::revert in Configuration Update Manager 8

Reverts configuration to the value from extension storage.

This action triggers a ConfigRevertInterface::REVERT event.

Parameters

string $type: The type of configuration.

string $name: The name of the config item, without the prefix.

Return value

bool TRUE if the operation succeeded; FALSE if the base configuration could not be found to revert to. May also throw exceptions if there is a problem during saving the configuration.

See also

\Drupal\config_update\ConfigRevertInterface::REVERT

1 method overrides ConfigRevertInterface::revert()
ConfigReverter::revert in src/ConfigReverter.php
Reverts configuration to the value from extension storage.

File

src/ConfigRevertInterface.php, line 63

Class

ConfigRevertInterface
Defines an interface for config import and revert operations.

Namespace

Drupal\config_update

Code

public function revert($type, $name);