public function DataPolicyConsentManager::getConfig in Data Policy 8
Return value from the configuration.
Parameters
string $name: The key in config.
Return value
mixed The value related with key.
Overrides DataPolicyConsentManagerInterface::getConfig
3 calls to DataPolicyConsentManager::getConfig()
- DataPolicyConsentManager::addCheckbox in src/
DataPolicyConsentManager.php - Add checkbox to form which allow user give consent on data policy.
- DataPolicyConsentManager::getEntityIdsFromConsentText in src/
DataPolicyConsentManager.php - Get the entity ids from consent text in settings form.
- DataPolicyConsentManager::isRequiredEntityInEntities in src/
DataPolicyConsentManager.php - Check if data policy is required.
File
- src/
DataPolicyConsentManager.php, line 416
Class
- DataPolicyConsentManager
- Defines the Data Policy Consent Manager service.
Namespace
Drupal\data_policyCode
public function getConfig($name) {
return $this->configFactory
->get('data_policy.data_policy')
->get($name);
}