You are here

protected function GoogleNewsFields::defineOptions in Views Google News 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 RowPluginBase::defineOptions

File

src/Plugin/views/row/GoogleNewsFields.php, line 31

Class

GoogleNewsFields
Renders an GoogleNews item based on fields.

Namespace

Drupal\views_googlenews\Plugin\views\row

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['loc_field'] = [
    'default' => '',
  ];
  $options['news_publication_name_field'] = [
    'default' => '',
  ];
  $options['news_publication_language_field'] = [
    'default' => '',
  ];
  $options['news_access_field'] = [
    'default' => '',
  ];
  $options['news_genres_field'] = [
    'default' => '',
  ];
  $options['news_publication_date_field'] = [
    'default' => '',
  ];
  $options['news_title_field'] = [
    'default' => '',
  ];
  $options['news_keywords_field'] = [
    'default' => '',
  ];
  $options['news_stock_tickers_field'] = [
    'default' => '',
  ];
  return $options;
}