You are here

protected function GroupContentToEntityBase::defineOptions in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/views/relationship/GroupContentToEntityBase.php \Drupal\group\Plugin\views\relationship\GroupContentToEntityBase::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 RelationshipPluginBase::defineOptions

File

src/Plugin/views/relationship/GroupContentToEntityBase.php, line 82

Class

GroupContentToEntityBase
A relationship handler base for group content entity references.

Namespace

Drupal\group\Plugin\views\relationship

Code

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