You are here

protected function SearchApiEntityField::getParentOptionKeys in Search API 8

Retrieves the keys of the options defined by our direct parent.

That is, this will exclude all options defined by \Drupal\views\Plugin\views\field\FieldPluginBase, and only include those defined by \Drupal\views\Plugin\views\field\EntityField.

Parameters

bool $form_only: (optional) If TRUE, return those fields that will be displayed as the top-most elements in the config form. Otherwise, return all options defined by the direct parent handler.

Return value

string[] The keys of options directly defined by our parent class or, if $form_only was passed, those that would be displayed in its config form.

2 calls to SearchApiEntityField::getParentOptionKeys()
SearchApiEntityField::buildOptionsForm in src/Plugin/views/field/SearchApiEntityField.php
Provide a form to edit options for this plugin.
SearchApiEntityField::defineOptions in src/Plugin/views/field/SearchApiEntityField.php
Defines the options used by this plugin.

File

src/Plugin/views/field/SearchApiEntityField.php, line 137

Class

SearchApiEntityField
Displays entity field data.

Namespace

Drupal\search_api\Plugin\views\field

Code

protected function getParentOptionKeys($form_only = FALSE) {
  $options = [
    'click_sort_column',
    'type',
    'field_api_classes',
    'settings',
  ];
  if ($form_only) {
    $options[] = 'multiple_field_settings';
    return $options;
  }
  $options = array_merge($options, [
    'group_column',
    'group_columns',
    'group_rows',
    'delta_limit',
    'delta_offset',
    'delta_reversed',
    'delta_first_last',
    'multi_type',
    'separator',
  ]);
  return $options;
}