You are here

public function Proximity::init in CiviCRM Entity 8.3

Overrides \Drupal\views\Plugin\views\HandlerBase::init().

Provide some extra help to get the operator/value easier to use.

This likely has to be overridden by filters which are more complex than simple operator/value.

Overrides FilterPluginBase::init

File

src/Plugin/views/filter/Proximity.php, line 58

Class

Proximity
Filter handler for proximity.

Namespace

Drupal\civicrm_entity\Plugin\views\filter

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->civicrmApi
    ->civicrmInitialize();
  \CRM_Contact_BAO_ProximityQuery::initialize();
}