public Config::delete()
Deletes the configuration object.
Return value
\Drupal\Core\Config\Config The configuration object.
Overrides StorableConfigBase::delete
File
- core/lib/Drupal/Core/Config/Config.php, line 241
Class
- Config
- Defines the default configuration object.
Namespace
Drupal\Core\Config
Code
1 2 3 4 5 6 7 8 9 10 | public function delete () { $this ->data = array (); $this ->storage-> delete ( $this ->name); Cache::invalidateTags( $this ->getCacheTags()); $this ->isNew = TRUE; $this ->resetOverriddenData(); $this ->eventDispatcher->dispatch(ConfigEvents:: DELETE , new ConfigCrudEvent( $this )); $this ->originalData = $this ->data; return $this ; } |
Please login to continue.