You are here

protected function FlagViewsFlaggedField::defineOptions in Flag 8.4

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

File

src/Plugin/views/field/FlagViewsFlaggedField.php, line 38

Class

FlagViewsFlaggedField
Provides a views field to show if the selected content is flagged or not.

Namespace

Drupal\flag\Plugin\views\field

Code

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