public function ViewsReferenceTitle::alterFormField in Views Reference Field 8.2
Get the form field array.
Parameters
array $form_field: The form field array.
Overrides ViewsReferenceSettingInterface::alterFormField
File
- src/
Plugin/ ViewsReferenceSetting/ ViewsReferenceTitle.php, line 26
Class
- ViewsReferenceTitle
- The views reference setting title plugin.
Namespace
Drupal\viewsreference\Plugin\ViewsReferenceSettingCode
public function alterFormField(array &$form_field) {
$form_field['#type'] = 'checkbox';
$form_field['#weight'] = 20;
}