ViewsJsonUriParam.php in Views Json Source 8
File
src/Plugin/views/argument/ViewsJsonUriParam.php
View source
<?php
namespace Drupal\views_json_source\Plugin\views\argument;
use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
use Drupal\Core\Form\FormStateInterface;
class ViewsJsonUriParam extends ArgumentPluginBase {
public function query($group_by = FALSE) {
$this->query
->addUrlParams($this->argument);
}
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['markup'] = [
'#markup' => $this
->t('Add this field to pick the dynamic value from the URL.'),
];
}
}