You are here

protected function GroupBaseForm::getConjunctionOptions in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_server/src/Form/GroupBaseForm.php \Drupal\entity_share_server\Form\GroupBaseForm::getConjunctionOptions()
  2. 8 modules/entity_share_server/src/Form/GroupBaseForm.php \Drupal\entity_share_server\Form\GroupBaseForm::getConjunctionOptions()

Helper function to get the conjunction options.

Return value

array An array of options.

2 calls to GroupBaseForm::getConjunctionOptions()
GroupAddForm::form in modules/entity_share_server/src/Form/GroupAddForm.php
Gets the actual form array to be built.
GroupEditForm::form in modules/entity_share_server/src/Form/GroupEditForm.php
Gets the actual form array to be built.

File

modules/entity_share_server/src/Form/GroupBaseForm.php, line 32

Class

GroupBaseForm
Class GroupBaseForm.

Namespace

Drupal\entity_share_server\Form

Code

protected function getConjunctionOptions() {
  return [
    'AND' => $this
      ->t('And'),
    'OR' => $this
      ->t('Or'),
  ];
}