82 foreach ($this->formElementsList as $key => $element)
84 $viewModesWhereFieldAvailable = $element->getCompatibleViewTypes();
85 if ($viewModesWhereFieldAvailable !=
null)
87 $viewKey = $this->
getWidget()->getViewKey();;
89 $viewProvider->addFilter(
'primary', $viewKey);
90 $viewProvider->addFilter(
'dataType', $viewModesWhereFieldAvailable);
91 $views = $viewProvider->execute()->getResults();
94 $result[$key] = $element;
99 $result[$key] = $element;