private function BehaviorSettingsManager::generateBehaviorSettingsFullId in Rabbit Hole 8
Same name and namespace in other branches
- 2.x src/BehaviorSettingsManager.php \Drupal\rabbit_hole\BehaviorSettingsManager::generateBehaviorSettingsFullId()
Generate a full ID based on entity type label, bundle label and entity id.
Parameters
string $entity_type_id: The entity type (e.g. node) as a string.
string $entity_id: The entity ID as a string.
Return value
string The full id appropriate for a BehaviorSettings config entity.
3 calls to BehaviorSettingsManager::generateBehaviorSettingsFullId()
- BehaviorSettingsManager::loadBehaviorSettingsAsConfig in src/
BehaviorSettingsManager.php - Load behaviour settings for an entity or bundle, or load the defaults.
- BehaviorSettingsManager::loadBehaviorSettingsAsEditableConfig in src/
BehaviorSettingsManager.php - Load behaviour settings for an entity or bundle, or return NULL.
- BehaviorSettingsManager::saveBehaviorSettings in src/
BehaviorSettingsManager.php - Save behavior settings for an entity or bundle.
File
- src/
BehaviorSettingsManager.php, line 90
Class
- BehaviorSettingsManager
- Provides operations for bundles configuration.
Namespace
Drupal\rabbit_holeCode
private function generateBehaviorSettingsFullId($entity_type_id, $entity_id = '') {
return $entity_type_id . (isset($entity_id) ? '_' . $entity_id : '');
}