You are here

public function SearchApiLocationPoint::defineOptions in Search API Location 8

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides ArgumentPluginBase::defineOptions

File

modules/search_api_location_views/src/Plugin/views/argument/SearchApiLocationPoint.php, line 24

Class

SearchApiLocationPoint
Provides a contextual filter for defining a location filter point.

Namespace

Drupal\search_api_location_views\Plugin\views\argument

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['default_radius'] = [
    'default' => FALSE,
    'bool' => TRUE,
  ];
  $options['radius'] = [
    'default' => 10,
  ];
  return $options;
}