Skip to content
Snippets Groups Projects
Commit c46630b8 authored by catch's avatar catch
Browse files

Remove unnecessary field settings.

parent e6820216
No related branches found
No related tags found
No related merge requests found
Pipeline #407677 passed
......@@ -25,11 +25,7 @@ class LmsCertificateHooks {
->setTargetEntityTypeId('group')
->setLabel(new TranslatableMarkup('Certificate'))
->setName('membership_group')
->setDescription(new TranslatableMarkup('Reference to an entity providing a certificate'))
->setSetting('target_type', 'group')
->setSetting('target_bundles', [
'lms_course' => 'lms_course',
]);
->setDescription(new TranslatableMarkup('Reference to an entity providing a certificate'));
}
return $fields;
}
......@@ -47,11 +43,7 @@ class LmsCertificateHooks {
->setLabel(new TranslatableMarkup('Certificate'))
->setDescription(new TranslatableMarkup('Reference to an entity providing a certificate'))
->setSetting('exclude_entity_types', FALSE)
->setSetting('entity_type_ids', [])
->setSetting('target_type', 'group')
->setSetting('target_bundles', [
'lms_course' => 'lms_course',
]);
->setSetting('entity_type_ids', []);
}
return $fields;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment