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()

Retrieves the options when this is a new access control plugin.

Overrides ArgumentValidatorPluginBase::defineOptions

File

src/Plugin/views/argument_validator/UrlPath.php, line 73

Class

UrlPath
Convert an entity id to its url path.

Namespace

Drupal\views_url_path_arguments\Plugin\views\argument_validator

Code

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