Commit 27f0b0f1 authored by alexpott's avatar alexpott

Issue #2425637 by pcambra, swentel: ConfigEntityInterface should extend ThirdPartySettingsInterface

parent 17a23d94
......@@ -24,7 +24,7 @@
*
* @ingroup entity_api
*/
abstract class ConfigEntityBase extends Entity implements ConfigEntityInterface, ThirdPartySettingsInterface {
abstract class ConfigEntityBase extends Entity implements ConfigEntityInterface {
use PluginDependencyTrait {
addDependency as addDependencyTrait;
......
......@@ -15,7 +15,7 @@
* @ingroup config_api
* @ingroup entity_api
*/
interface ConfigEntityInterface extends EntityInterface {
interface ConfigEntityInterface extends EntityInterface, ThirdPartySettingsInterface {
/**
* Enables the configuration entity.
......
......@@ -8,13 +8,12 @@
namespace Drupal\Core\Entity\Display;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
use Drupal\Core\Entity\EntityWithPluginCollectionInterface;
/**
* Provides a common interface for entity displays.
*/
interface EntityDisplayInterface extends ConfigEntityInterface, EntityWithPluginCollectionInterface, ThirdPartySettingsInterface {
interface EntityDisplayInterface extends ConfigEntityInterface, EntityWithPluginCollectionInterface {
/**
* Creates a duplicate of the entity display object on a different view mode.
......
......@@ -8,7 +8,6 @@
namespace Drupal\Core\Field;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
/**
* Defines an interface for configurable field definitions.
......@@ -20,7 +19,7 @@
* @see \Drupal\Core\Field\Entity\BaseFieldOverride
* @see \Drupal\field\Entity\FieldConfig
*/
interface FieldConfigInterface extends FieldDefinitionInterface, ConfigEntityInterface, ThirdPartySettingsInterface {
interface FieldConfigInterface extends FieldDefinitionInterface, ConfigEntityInterface {
/**
* Sets the field definition label.
......
......@@ -8,12 +8,11 @@
namespace Drupal\contact;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
/**
* Provides an interface defining a contact form entity.
*/
interface ContactFormInterface extends ConfigEntityInterface, ThirdPartySettingsInterface {
interface ContactFormInterface extends ConfigEntityInterface {
/**
* Returns list of recipient e-mail addresses.
......
......@@ -8,12 +8,11 @@
namespace Drupal\image;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
/**
* Provides an interface defining an image style entity.
*/
interface ImageStyleInterface extends ConfigEntityInterface, ThirdPartySettingsInterface {
interface ImageStyleInterface extends ConfigEntityInterface {
/**
* Returns the replacement ID.
......
......@@ -8,12 +8,11 @@
namespace Drupal\language;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
/**
* Provides an interface defining language settings for content entities.
*/
interface ContentLanguageSettingsInterface extends ConfigEntityInterface, ThirdPartySettingsInterface {
interface ContentLanguageSettingsInterface extends ConfigEntityInterface {
/**
* Gets the entity type ID this config applies to.
......
......@@ -8,12 +8,11 @@
namespace Drupal\node;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
/**
* Provides an interface defining a node type entity.
*/
interface NodeTypeInterface extends ConfigEntityInterface, ThirdPartySettingsInterface {
interface NodeTypeInterface extends ConfigEntityInterface {
/**
* Determines whether the node type is locked.
......
......@@ -8,12 +8,11 @@
namespace Drupal\taxonomy;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
/**
* Provides an interface defining a taxonomy vocabulary entity.
*/
interface VocabularyInterface extends ConfigEntityInterface, ThirdPartySettingsInterface {
interface VocabularyInterface extends ConfigEntityInterface {
/**
* Returns the vocabulary hierarchy.
......
......@@ -11,6 +11,7 @@
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Timer;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Drupal\views\Views;
......@@ -1252,4 +1253,38 @@ public function isInstallable() {
return $this->storage->isInstallable();
}
/**
* {@inheritdoc}
*/
public function setThirdPartySetting($module, $key, $value) {
return $this->storage->setThirdPartySetting($module, $key, $value);
}
/**
* {@inheritdoc}
*/
public function getThirdPartySetting($module, $key, $default = NULL) {
return $this->storage->getThirdPartySetting($module, $key, $default);
}
/**
* {@inheritdoc}
*/
public function getThirdPartySettings($module) {
return $this->storage->getThirdPartySettings($module);
}
/**
* {@inheritdoc}
*/
public function unsetThirdPartySetting($module, $key) {
return $this->storage->unsetThirdPartySetting($module, $key);
}
/**
* {@inheritdoc}
*/
public function getThirdPartyProviders() {
return $this->storage->getThirdPartyProviders();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment