You are here

function paragraphs_field_widget_render_required in Paragraphs 7

Pre-render callback that ensures the element is rendered as being required.

1 string reference to 'paragraphs_field_widget_render_required'
_paragraphs_collect_required_elements in ./paragraphs.field_widget.inc
Collects all embedded required fields.

File

./paragraphs.field_widget.inc, line 730
Holds functions for the paragraphs widgets.

Code

function paragraphs_field_widget_render_required($element) {
  $element['#required'] = TRUE;
  return $element;
}