interface TcaSettingsManagerInterface in Token Content Access 2.0.x
Same name and namespace in other branches
- 8 src/TcaSettingsManagerInterface.php \Drupal\tca\TcaSettingsManagerInterface
Interface TcaSettingsManagerInterface.
@package Drupal\tca
Hierarchy
- interface \Drupal\tca\TcaSettingsManagerInterface
Expanded class hierarchy of TcaSettingsManagerInterface
All classes that implement TcaSettingsManagerInterface
File
- src/
TcaSettingsManagerInterface.php, line 10
Namespace
Drupal\tcaView source
interface TcaSettingsManagerInterface {
/**
* Save settings for an entity or bundle.
*
* @param array $settings
* The settings for the TcaSettings entity.
* @param string $entity_type_id
* The entity type (e.g. node) as a string.
* @param string $entity_id
* The entity ID as a string.
*/
public function saveSettings(array $settings, $entity_type_id, $entity_id);
/**
* Load settings for an entity or bundle, or load the defaults.
*
* Load TCA settings appropriate to the given config or
* default settings if not available.
*
* @param string $entity_type_id
* The entity type (e.g. node) as a string.
* @param string $entity_id
* The entity ID as a string.
*
* @return \Drupal\Core\Config\ImmutableConfig
* The TcaSettings Config object.
*/
public function loadSettingsAsConfig($entity_type_id, $entity_id);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TcaSettingsManagerInterface:: |
public | function | Load settings for an entity or bundle, or load the defaults. | 1 |
TcaSettingsManagerInterface:: |
public | function | Save settings for an entity or bundle. | 1 |