Skip to content
Snippets Groups Projects
Commit 3891f97a authored by Ahmad Alyasaki's avatar Ahmad Alyasaki
Browse files

Issue #3449079: Fix allowed view modes options to change paragraph view modes...

Issue #3449079: Fix allowed view modes options to change paragraph view modes when use in content block
parent a3b8a43d
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ function seeds_page_tokens($type, $tokens, array $data, array $options, Bubbleab
/**
*
*/
function seeds_page_field_widget_entity_reference_paragraphs_form_alter(&$element, &$form_state, $context) {
function seeds_page_field_widget_single_element_form_alter(&$element, &$form_state, $context) {
if (isset($element["subform"]["field_seeds_view_mode"])) {
$options = \Drupal::service('seeds_page.manager')->getAllowedViewModesOptions($element["#paragraph_type"]);
$element["subform"]["field_seeds_view_mode"]["widget"]["#options"] = $options ?? [];
......
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