You are here

public function GoogleAnalyticsString::operatorValues in Google Analytics Reports 8.3

Operator values.

Parameters

int $values: Value.

Return value

array Operator keys.

2 calls to GoogleAnalyticsString::operatorValues()
GoogleAnalyticsString::adminSummary in src/Plugin/views/filter/GoogleAnalyticsString.php
Display the filter on the administrative summary
GoogleAnalyticsString::valueForm in src/Plugin/views/filter/GoogleAnalyticsString.php
Provide a simple textfield for equality.

File

src/Plugin/views/filter/GoogleAnalyticsString.php, line 225

Class

GoogleAnalyticsString
Basic textfield filter to handle string filtering commands.

Namespace

Drupal\google_analytics_reports\Plugin\views\filter

Code

public function operatorValues($values = 1) {
  $options = [];
  foreach ($this
    ->operators() as $id => $info) {
    if (isset($info['values']) && $info['values'] == $values) {
      $options[] = $id;
    }
  }
  return $options;
}