You are here

public function GoogleAnalyticsQuery::defineOptions in Google Analytics Reports 8.3

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 PluginBase::defineOptions

File

src/Plugin/views/query/GoogleAnalyticsQuery.php, line 408

Class

GoogleAnalyticsQuery
Defines a Views query class for Google Analytics Reports API.

Namespace

Drupal\google_analytics_reports\Plugin\views\query

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['reports_profile'] = [
    'default' => FALSE,
    'translatable' => FALSE,
    'bool' => TRUE,
  ];
  $options['profile_id'] = [
    'default' => FALSE,
  ];
  return $options;
}