public function ViewsReferenceOffset::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/ ViewsReferenceOffset.php, line 26
Class
- ViewsReferenceOffset
- The views reference setting offset results plugin.
Namespace
Drupal\viewsreference\Plugin\ViewsReferenceSettingCode
public function alterFormField(array &$form_field) {
$form_field['#title'] = $this
->t('Offset results');
$form_field['#type'] = 'number';
$form_field['#weight'] = 30;
}