You are here

interface ConfigDeleteInterface in Configuration Update Manager 8

Defines an interface for deleting config items.

Hierarchy

Expanded class hierarchy of ConfigDeleteInterface

All classes that implement ConfigDeleteInterface

1 file declares its use of ConfigDeleteInterface
ConfigReverterTest.php in tests/src/Unit/ConfigReverterTest.php

File

src/ConfigDeleteInterface.php, line 8

Namespace

Drupal\config_update
View source
interface ConfigDeleteInterface {

  /**
   * Name of the event triggered on configuration delete.
   *
   * @see \Drupal\config_update\ConfigRevertEvent
   * @see \Drupal\config_update\ConfigDeleteInterface::delete()
   */
  const DELETE = 'config_update.delete';

  /**
   * Deletes a configuration item.
   *
   * This action triggers a ConfigDeleteInterface::DELETE event.
   *
   * @param string $type
   *   The type of configuration.
   * @param string $name
   *   The name of the config item, without the prefix.
   *
   * @return bool
   *   TRUE if the operation succeeded; FALSE if the base configuration could
   *   not be found to delete. May also throw exceptions if there is a
   *   problem during deleting the configuration.
   *
   * @see \Drupal\config_update\ConfigDeleteInterface::DELETE
   */
  public function delete($type, $name);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigDeleteInterface::delete public function Deletes a configuration item. 1
ConfigDeleteInterface::DELETE constant Name of the event triggered on configuration delete.