protected function getWidgetOptions()
 {
     $widget_options = parent::getWidgetOptions();
     $widget_options['min_count'] = $this->getMinCount($this->isRequired());
     $widget_options['max_count'] = $this->getMaxCount();
     return $widget_options;
 }
 protected function getWidgetOptions()
 {
     $widget_options = parent::getWidgetOptions();
     $widget_options['min_count'] = $this->getMinCount($this->isRequired());
     $widget_options['max_count'] = $this->getMaxCount();
     $widget_options['allowed_values'] = $this->getAllowedValues();
     if ($this->hasOption('remove_label')) {
         $widget_options['remove_label'] = $this->_($this->getOption('remove_label'), $this->getTranslationDomain());
     }
     $widget_options['remove_title'] = $this->_($this->getOption('remove_title', 'text_list_remove_title'), $this->getTranslationDomain());
     return $widget_options;
 }
 protected function getWidgetOptions()
 {
     $allow_empty_option = $this->getOption('allow_empty_option', false) || $this->getOption('add_empty_option', false);
     $widget_options = ['allow_empty_option' => $allow_empty_option];
     return array_replace_recursive(parent::getWidgetOptions(), $widget_options);
 }
 protected function getWidgetOptions()
 {
     $widget_options = parent::getWidgetOptions();
     $resource = $this->getPayload('resource');
     if ($resource->hasValue('identifier')) {
         $render_embed_uri_tpl = $this->url_generator->generateUrl('module.resource.embed', ['resource' => $resource, 'embed_path' => '{EMBED_PATH}'], ['relative' => true]);
     } else {
         $render_embed_uri_tpl = $this->url_generator->generateUrl('module.embed', ['module' => $resource->getType(), 'embed_path' => '{EMBED_PATH}'], ['relative' => true]);
     }
     $widget_options['min_count'] = $this->getMinCount($this->isRequired());
     $widget_options['max_count'] = $this->getMaxCount();
     $widget_options['inline_mode'] = $this->attribute->getOption('inline_mode', false);
     $widget_options['input_group'] = (array) $this->getOption('group_parts', []);
     $widget_options['fieldname'] = $this->attribute->getName();
     $widget_options['render_embed_uri_tpl'] = $render_embed_uri_tpl;
     return $widget_options;
 }