public static function ExifHiddenWidget::process in Exif 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/ExifHiddenWidget.php \Drupal\exif\Plugin\Field\FieldWidget\ExifHiddenWidget::process()
Implements callback of formElement.
Parameters
array $element: A form element array containing basic properties for the widget.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
array $form: The form structure where widgets are being attached to.
Return value
array The form elements for a single widget for this field.
File
- src/
Plugin/ Field/ FieldWidget/ ExifHiddenWidget.php, line 44
Class
- ExifHiddenWidget
- Plugin implementation of the 'exif_readonly' widget.
Namespace
Drupal\exif\Plugin\Field\FieldWidgetCode
public static function process(array $element, FormStateInterface $form_state, array $form) {
$element['tid'] = [
'#type' => 'hidden',
'#value' => '',
];
$element['value'] = [
'#type' => 'hidden',
'#value' => '',
];
$element['timezone'] = [
'#type' => 'hidden',
'#value' => '',
];
$element['value2'] = [
'#type' => 'hidden',
'#value' => '',
];
$element['display'] = [
'#type' => 'hidden',
'#value' => '',
];
return $element;
}