Skip to content
Snippets Groups Projects

Update 5 files

Files
5
@@ -4,6 +4,7 @@ namespace Drupal\views_csv_source\Plugin\views\argument;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
use Drupal\views_csv_source\Plugin\views\ColumnSelectorTrait;
/**
* Base argument handler for views_csv_source.
@@ -14,6 +15,8 @@ use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
*/
class ViewsCsvArgument extends ArgumentPluginBase {
use ColumnSelectorTrait;
/**
* Add this filter to the query.
*/
@@ -45,13 +48,7 @@ class ViewsCsvArgument extends ArgumentPluginBase {
* {@inheritdoc}
*/
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['key'] = [
'#title' => $this->t('Column Selector'),
'#description' => $this->t('Choose a key'),
'#type' => 'textfield',
'#default_value' => $this->options['key'],
'#required' => TRUE,
];
$form = $this->buildKeyOptionElement($form);
}
}
Loading