function RestExport::getAuthOptions

Same name in other branches
  1. 9 core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::getAuthOptions()
  2. 8.9.x core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::getAuthOptions()
  3. 11.x core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::getAuthOptions()

Gets the auth options available.

Return value

string[] An array to use as value for "#options" in the form element.

1 call to RestExport::getAuthOptions()
RestExport::buildOptionsForm in core/modules/rest/src/Plugin/views/display/RestExport.php
Provide a form to edit options for this plugin.

File

core/modules/rest/src/Plugin/views/display/RestExport.php, line 248

Class

RestExport
The plugin that handles Data response callbacks for REST resources.

Namespace

Drupal\rest\Plugin\views\display

Code

public function getAuthOptions() {
    return array_combine($this->authenticationProviderIds, $this->authenticationProviderIds);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.