You are here

public static function MenuTrailByPathSettingsForm::getTrailSourceOptions in Menu Trail By Path 8

Returns an array of trail source options.

Return value

string[] An array of trail source options.

2 calls to MenuTrailByPathSettingsForm::getTrailSourceOptions()
MenuTrailByPathSettingsForm::buildForm in src/Form/MenuTrailByPathSettingsForm.php
Form constructor.
menu_trail_by_path_form_menu_form_alter in ./menu_trail_by_path.module
Implements hook_form_FORM_ID_alter().

File

src/Form/MenuTrailByPathSettingsForm.php, line 27

Class

MenuTrailByPathSettingsForm
Configures menu trail by path settings for this site.

Namespace

Drupal\menu_trail_by_path\Form

Code

public static function getTrailSourceOptions() {
  return [
    MenuTrailByPathActiveTrail::MENU_TRAIL_PATH => t('By Path'),
    MenuTrailByPathActiveTrail::MENU_TRAIL_CORE => t('Drupal Core Behavior'),
    MenuTrailByPathActiveTrail::MENU_TRAIL_DISABLED => t('Disabled'),
  ];
}