public function LdapVariableImageAttribute::buildOptionsForm in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.3 ldap_query/src/Plugin/views/field/LdapVariableImageAttribute.php \Drupal\ldap_query\Plugin\views\field\LdapVariableImageAttribute::buildOptionsForm()
Overrides VariableAttributeCustomization::buildOptionsForm
File
- ldap_query/
src/ Plugin/ views/ field/ LdapVariableImageAttribute.php, line 45
Class
- LdapVariableImageAttribute
- Let's the user choose which LDAP attribute to use from the query.
Namespace
Drupal\ldap_query\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) : void {
parent::buildOptionsForm($form, $form_state);
// To avoid code complexity, multi-value is removed for images, since
// that is in unusual scenario.
unset($form['multi_value']);
unset($form['value_separator']);
unset($form['index_value']);
}