private function TcaSettingsManager::generateSettingsFullId in Token Content Access 2.0.x
Same name and namespace in other branches
- 8 src/TcaSettingsManager.php \Drupal\tca\TcaSettingsManager::generateSettingsFullId()
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 TcaSettings config entity.
2 calls to TcaSettingsManager::generateSettingsFullId()
- TcaSettingsManager::loadSettingsAsConfig in src/
TcaSettingsManager.php - Load settings for an entity or bundle, or load the defaults.
- TcaSettingsManager::saveSettings in src/
TcaSettingsManager.php - Save settings for an entity or bundle.
File
- src/
TcaSettingsManager.php, line 149
Class
- TcaSettingsManager
- Class TcaSettingsManager.
Namespace
Drupal\tcaCode
private function generateSettingsFullId($entity_type_id, $entity_id) {
return $entity_type_id . (!empty($entity_id) ? '_' . $entity_id : '');
}