Same name in other branches
- 2.x src/EntityCloneSettingsManager.php \Drupal\entity_clone\EntityCloneSettingsManager::getDefaultValue()
Get the checkbox default value for a given entity type.
Parameters
string $entity_type_id: The entity type ID.
Return value
bool The default value.
File
-
src/
EntityCloneSettingsManager.php, line 107
Class
- EntityCloneSettingsManager
- Manage entity clone configuration.
Namespace
Drupal\entity_cloneCode
public function getDefaultValue($entity_type_id) {
$form_settings = $this->config
->get('form_settings');
if (isset($form_settings[$entity_type_id]['default_value'])) {
return $form_settings[$entity_type_id]['default_value'];
}
return FALSE;
}