You are here

protected function UrlPath::defineOptions in Views URL Path Arguments 8

Same name in this branch
  1. 8 src/Plugin/views/argument_default/UrlPath.php \Drupal\views_url_path_arguments\Plugin\views\argument_default\UrlPath::defineOptions()
  2. 8 src/Plugin/views/argument_validator/UrlPath.php \Drupal\views_url_path_arguments\Plugin\views\argument_validator\UrlPath::defineOptions()

Retrieve the options when this is a new access control plugin

Overrides ArgumentDefaultPluginBase::defineOptions

File

src/Plugin/views/argument_default/UrlPath.php, line 75

Class

UrlPath
Convert an entity id to its url path.

Namespace

Drupal\views_url_path_arguments\Plugin\views\argument_default

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['provide_static_segments'] = [
    'default' => FALSE,
  ];
  $options['segments'] = [
    'default' => '',
  ];
  return $options;
}