function entity_reference_layout_form_field_ui_field_storage_add_form_alter in Entity Reference with Layout 8
Implements hook_form_FORM_ID_alter() for 'field_ui_field_storage_add_form'.
File
- ./
entity_reference_layout.module, line 431 - Contains entity_reference_layout.module.
Code
function entity_reference_layout_form_field_ui_field_storage_add_form_alter(array &$form) {
if (isset($form['add']['new_storage_type']['#options'][(string) t('Reference revisions')]['field_ui:entity_reference_layout_revisioned:paragraph'])) {
// @todo Figure out why this option breaks the field config form
// and reintroduce it if possible.
// See https://www.drupal.org/project/entity_reference_layout/issues/3041126
unset($form['add']['new_storage_type']['#options'][(string) t('Reference revisions')]['field_ui:entity_reference_layout_revisioned:paragraph']);
}
}