You are here

protected function TokenBrowser::getQueryOptions in Token Filter 8

Fetches the list of query options.

Return value

array The list of query options.

See also

TreeBuilderInterface::buildRenderable() for option definitions.

1 call to TokenBrowser::getQueryOptions()
TokenBrowser::getUrl in src/Plugin/CKEditorPlugin/TokenBrowser.php
Fetches the URL.

File

src/Plugin/CKEditorPlugin/TokenBrowser.php, line 110

Class

TokenBrowser
Defines the "tokenbrowser" plugin.

Namespace

Drupal\token_filter\Plugin\CKEditorPlugin

Code

protected function getQueryOptions($token_types = NULL) {
  return [
    'token_types' => $token_types ?: 'all',
    'global_types' => FALSE,
    'click_insert' => TRUE,
    'show_restricted' => FALSE,
    'show_nested' => FALSE,
    'recursion_limit' => 3,
  ];
}