You are here

protected function LdapAttribute::defineOptions in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_query/src/Plugin/views/field/LdapAttribute.php \Drupal\ldap_query\Plugin\views\field\LdapAttribute::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 FieldPluginBase::defineOptions

File

ldap_query/src/Plugin/views/field/LdapAttribute.php, line 56

Class

LdapAttribute
The handler for loading a specific LDAP field.

Namespace

Drupal\ldap_query\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['multi_value'] = [
    'default' => 'v-all',
  ];
  $options['value_separator'] = [
    'default' => '',
  ];
  $options['index_value'] = [
    'default' => 0,
  ];
  return $options;
}