public function QuickNodeCloneEntitySettingsForm::getDefaultFields in Quick Node Clone 8
Returns the default fields.
Parameters
string $value: The bundle name.
Return value
array The default fields.
Overrides QuickNodeCloneEntitySettingsFormInterface::getDefaultFields
1 call to QuickNodeCloneEntitySettingsForm::getDefaultFields()
- QuickNodeCloneEntitySettingsForm::buildForm in src/
Form/ QuickNodeCloneEntitySettingsForm.php - Form constructor.
File
- src/
Form/ QuickNodeCloneEntitySettingsForm.php, line 255
Class
- QuickNodeCloneEntitySettingsForm
- Abstract class to configure how entities are cloned.
Namespace
Drupal\quick_node_clone\FormCode
public function getDefaultFields($value) {
$default_fields = [];
$config_name = 'exclude.' . $this
->getEntityTypeId() . '.' . $value;
if (!empty($this
->getSettings($config_name))) {
$default_fields = $this
->getSettings($config_name);
}
return $default_fields;
}