interface BehaviorSettingsManagerInterface in Rabbit Hole 8
Same name and namespace in other branches
- 2.x src/BehaviorSettingsManagerInterface.php \Drupal\rabbit_hole\BehaviorSettingsManagerInterface
Interface BehaviourSettingsManagerInterface.
@package Drupal\rabbit_hole
Hierarchy
- interface \Drupal\rabbit_hole\BehaviorSettingsManagerInterface
Expanded class hierarchy of BehaviorSettingsManagerInterface
All classes that implement BehaviorSettingsManagerInterface
File
- src/
BehaviorSettingsManagerInterface.php, line 10
Namespace
Drupal\rabbit_holeView source
interface BehaviorSettingsManagerInterface {
/**
* Save behavior settings for an entity or bundle.
*
* @param array $settings
* The settings for the BehaviorSettings 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 saveBehaviorSettings(array $settings, $entity_type_id, $entity_id = NULL);
/**
* Load behaviour settings for an entity or bundle, or load the defaults.
*
* Load rabbit hole behaviour settings appropriate to the given config or
* default settings if not available.
*
* @param string $entity_type_label
* 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 BehaviorSettings Config object.
*/
public function loadBehaviorSettingsAsConfig($entity_type_label, $entity_id);
/**
* Load behaviour settings for an entity or bundle, or return NULL.
*
* Load editable rabbit hole behaviour settings appropriate to the given
* config or NULL if not available.
*
* @param string $entity_type_label
* The entity type (e.g. node) as a string.
* @param string $entity_id
* The entity ID as a string.
*
* @return \Drupal\Core\Config\ImmutableConfig|null
* The BehaviorSettings Config object or NULL if it does not exist.
*/
public function loadBehaviorSettingsAsEditableConfig($entity_type_label, $entity_id);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BehaviorSettingsManagerInterface:: |
public | function | Load behaviour settings for an entity or bundle, or load the defaults. | 1 |
BehaviorSettingsManagerInterface:: |
public | function | Load behaviour settings for an entity or bundle, or return NULL. | 1 |
BehaviorSettingsManagerInterface:: |
public | function | Save behavior settings for an entity or bundle. | 1 |