public function VBExportAction::buildConfigurationForm in Content Export YAML 8
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.
File
- modules/
vbo_content_export_yaml/ src/ Plugin/ Action/ VBExportAction.php, line 82
Class
- VBExportAction
- An example action covering most of the possible options.
Namespace
Drupal\vbo_content_export_yaml\Plugin\ActionCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$config = \Drupal::config('content_export_yaml.contentexportsetting');
$path = $config
->get('path_export_content_folder');
if ($path == NULL) {
$path = "";
}
$form['path_folder_export'] = [
'#type' => 'textfield',
'#title' => t('Folder path'),
'#default_value' => $path,
];
return $form;
}