3 namespace Drupal\Core\Config\Entity;
6 * Interface for configuration entities to store third party information.
8 * A third party is a module that needs to store tightly coupled information to
9 * the configuration entity. For example, a module alters the node type form
10 * can use this to store its configuration so that it will be deployed with the
13 interface ThirdPartySettingsInterface {
16 * Sets the value of a third-party setting.
18 * @param string $module
19 * The module providing the third-party setting.
27 public function setThirdPartySetting($module, $key, $value);
30 * Gets the value of a third-party setting.
32 * @param string $module
33 * The module providing the third-party setting.
36 * @param mixed $default
42 public function getThirdPartySetting($module, $key, $default = NULL);
45 * Gets all third-party settings of a given module.
47 * @param string $module
48 * The module providing the third-party settings.
51 * An array of key-value pairs.
53 public function getThirdPartySettings($module);
56 * Unsets a third-party setting.
58 * @param string $module
59 * The module providing the third-party setting.
66 public function unsetThirdPartySetting($module, $key);
69 * Gets the list of third parties that store information.
72 * The list of third parties.
74 public function getThirdPartyProviders();