<?php/**
* @file
* Definition of Drupal\Core\Config\Entity\ConfigEntityInterface.
*/namespaceDrupal\Core\Config\Entity;
useDrupal\Core\Entity\EntityInterface;
/**
* Defines the interface common for all configuration entities.
*/interfaceConfigEntityInterfaceextends EntityInterface {
/**
* Returns the original ID.
*
* @return string|null
* The original ID, if any.
*/
public functiongetOriginalID();
/**
* Sets the original ID.
*
* @param string $id
* The new ID to set as original ID.
*
* @return void
*/
public functionsetOriginalID($id);
/**
* Enables the configuration entity.
*
* @return \Drupal\Core\Config\Entity\ConfigEntityInterface
* The configuration entity.
*/
public functionenable();
/**
* Disables the configuration entity.
*
* @return \Drupal\Core\Config\Entity\ConfigEntityInterface
* The configuration entity.
*/
public functiondisable();
/**
* Sets the status of the configuration entity.
*
* @param bool $status
* The status of the configuration entity.
*
* @return \Drupal\Core\Config\Entity\ConfigEntityInterface
* The class instance that this method is called on.
*/
public functionsetStatus($status);
/**
* Returns whether the configuration entity is enabled.
*
* Status implementations for configuration entities should follow these
* general rules:
* - Status does not affect the loading of entities. I.e. Disabling
* configuration entities should only have UI/access implications.
* - It should only take effect when a 'status' key is explicitly declared
* in the entity_keys info of a configuration entitys annotation data.
* - Each entity implementation (entity/controller) is responsible for
* checking and managing the status.
*
* @return bool
*/
public functionstatus();
}