You are here

protected function Eva::defineOptions in EVA: Entity Views Attachment 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/views/display/Eva.php \Drupal\eva\Plugin\views\display\Eva::defineOptions()

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

File

src/Plugin/views/display/Eva.php, line 97

Class

Eva
The plugin that handles an EVA display in views.

Namespace

Drupal\eva\Plugin\views\display

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['entity_type']['default'] = '';
  $options['bundles']['default'] = [];
  $options['argument_mode']['default'] = 'id';
  $options['default_argument']['default'] = '';
  $options['title']['default'] = '';
  $options['defaults']['default']['title'] = FALSE;
  return $options;
}