You are here

public static function TokenReplacer::getDefaultOptions in Advanced Entity Tokens 2.x

Fetches the default options for token replacement.

@todo Add support for $options['callback', 'sanitize' and 'language']

Return value

array The default options.

1 call to TokenReplacer::getDefaultOptions()
TokenReplacer::setOptions in src/TokenReplacer.php
Associates the service with a set of options.

File

src/TokenReplacer.php, line 134

Class

TokenReplacer
Class TokenReplacer.

Namespace

Drupal\aet

Code

public static function getDefaultOptions() {
  return [
    'callback' => NULL,
    'sanitize' => FALSE,
    'language' => \Drupal::languageManager()
      ->getCurrentLanguage(),
    'clear' => FALSE,
  ];
}