You are here

protected function SortBaseForm::getDirectionOptions in Entity Share 8.2

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

Helper function to get the operator options.

Return value

array An array of options.

2 calls to SortBaseForm::getDirectionOptions()
SortAddForm::form in modules/entity_share_server/src/Form/SortAddForm.php
Gets the actual form array to be built.
SortEditForm::form in modules/entity_share_server/src/Form/SortEditForm.php
Gets the actual form array to be built.

File

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

Class

SortBaseForm
Class SortBaseForm.

Namespace

Drupal\entity_share_server\Form

Code

protected function getDirectionOptions() {
  return [
    'ASC' => $this
      ->t('Ascending'),
    'DESC' => $this
      ->t('Descending'),
  ];
}