You are here

protected function SearchApiRenderedItem::defineOptions in Search API 8

Defines the options used by this plugin.

Return value

array Returns the options of this handler/plugin.

Overrides SearchApiFieldTrait::defineOptions

See also

\Drupal\views\Plugin\views\PluginBase::defineOptions()

File

src/Plugin/views/field/SearchApiRenderedItem.php, line 62

Class

SearchApiRenderedItem
Handles rendering an entity in a certain view mode in Search API Views.

Namespace

Drupal\search_api\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['view_modes'] = [
    'default' => [],
  ];
  return $options;
}