public function ViewsBulkOperationExampleAction::buildConfigurationForm in Views Bulk Operations (VBO) 4.0.x
Same name and namespace in other branches
- 8.3 modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php \Drupal\views_bulk_operations_example\Plugin\Action\ViewsBulkOperationExampleAction::buildConfigurationForm()
- 8 modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php \Drupal\views_bulk_operations_example\Plugin\Action\ViewsBulkOperationExampleAction::buildConfigurationForm()
- 8.2 modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php \Drupal\views_bulk_operations_example\Plugin\Action\ViewsBulkOperationExampleAction::buildConfigurationForm()
Configuration form builder.
If this method has implementation, the action is considered to be configurable.
Parameters
array $form: Form array.
Drupal\Core\Form\FormStateInterface $form_state: The form state object.
Return value
array The configuration form.
Overrides PluginFormInterface::buildConfigurationForm
File
- modules/
views_bulk_operations_example/ src/ Plugin/ Action/ ViewsBulkOperationExampleAction.php, line 73
Class
- ViewsBulkOperationExampleAction
- An example action covering most of the possible options.
Namespace
Drupal\views_bulk_operations_example\Plugin\ActionCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form['example_config_setting'] = [
'#title' => t('Example setting pre-execute'),
'#type' => 'textfield',
'#default_value' => $form_state
->getValue('example_config_setting'),
];
return $form;
}