You are here

protected function FieldCollectionHandlerRelationship::defineOptions in Field collection 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/relationship/FieldCollectionHandlerRelationship.php \Drupal\field_collection\Plugin\views\relationship\FieldCollectionHandlerRelationship::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/FieldCollectionHandlerRelationship.php, line 22

Class

FieldCollectionHandlerRelationship
Relationship handler to return the taxonomy terms of nodes.

Namespace

Drupal\field_collection\Plugin\views\relationship

Code

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