interface ConfigActionsSourceInterface in Config Actions 8
Defines an interface for config actions plugins
Hierarchy
- interface \Drupal\config_actions\ConfigActionsSourceInterface
Expanded class hierarchy of ConfigActionsSourceInterface
All classes that implement ConfigActionsSourceInterface
File
- src/
ConfigActionsSourceInterface.php, line 8
Namespace
Drupal\config_actionsView source
interface ConfigActionsSourceInterface {
/** ---------------------------------------------- */
/** ABSTRACT Functions to be implemented in Plugin */
/** ---------------------------------------------- */
/**
* Load data from the source.
*
* @return array config data
*/
public function doLoad();
/**
* Save data to the source.
*
* @param array $data
* @return bool TRUE if the data was saved.
*/
public function doSave($data);
/**
* Determine if $source is valid for the specific plugin.
*
* @param mixed $source
* @return bool
* TRUE if $source is a valid reference for this plugin.
*/
public function detect($source);
/** ------------------------------------------- */
/** GENERAL Functions implemented in Base class */
/** ------------------------------------------- */
/**
* Load data from the source.
*
* @return array Loaded config data.
*/
public function load();
/**
* Save data to the source.
*
* @param mixed $data
* @return bool TRUE if the data was saved.
*/
public function save($data);
/**
* Get the data cached from the last load/save.
* @return mixed
*/
public function getData();
/**
* Set the data cached in this plugin instance.
* Causes the plugin to be marked as Changed.
* @param array $data
* @param bool $changed
* whether to marked the data as changed.
* @return array
* Returns the $data
*/
public function setData($data = [], $changed = TRUE);
/**
* Return TRUE if the data has changed since the last load.
* @return bool
*/
public function isChanged();
/**
* Return the type of plugin.
* @return string
*/
public function getType();
/**
* Return whether the data from this source will be merged
* @return bool
*/
public function getMerge();
/**
* Set whether data saved in this source should be merged with existing data
* @param bool $merge
*/
public function setMerge($merge);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigActionsSourceInterface:: |
public | function | Determine if $source is valid for the specific plugin. | 1 |
ConfigActionsSourceInterface:: |
public | function | Load data from the source. | 1 |
ConfigActionsSourceInterface:: |
public | function | Save data to the source. | 1 |
ConfigActionsSourceInterface:: |
public | function | Get the data cached from the last load/save. | 1 |
ConfigActionsSourceInterface:: |
public | function | Return whether the data from this source will be merged | 1 |
ConfigActionsSourceInterface:: |
public | function | Return the type of plugin. | 1 |
ConfigActionsSourceInterface:: |
public | function | Return TRUE if the data has changed since the last load. | 1 |
ConfigActionsSourceInterface:: |
public | function | Load data from the source. | 1 |
ConfigActionsSourceInterface:: |
public | function | Save data to the source. | 1 |
ConfigActionsSourceInterface:: |
public | function | Set the data cached in this plugin instance. Causes the plugin to be marked as Changed. | 1 |
ConfigActionsSourceInterface:: |
public | function | Set whether data saved in this source should be merged with existing data | 1 |