ArgumentDefaultTest.php in Views (for Drupal 7) 8.3
File
tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/argument_default/ArgumentDefaultTest.php
View source
<?php
namespace Drupal\views_test_data\Plugin\views\argument_default;
use Drupal\views\Plugin\views\argument_default\ArgumentDefaultPluginBase;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
class ArgumentDefaultTest extends ArgumentDefaultPluginBase {
protected function defineOptions() {
$options = parent::defineOptions();
$options['value'] = array(
'default' => '',
);
return $options;
}
public function get_argument() {
return $this->options['value'];
}
}