You are here

public function JsCallbackBase::getAllowedMethods in JS Callback Handler 8.3

An indexed array of allowed HTTP methods.

Return value

array

Overrides JsCallbackInterface::getAllowedMethods

1 call to JsCallbackBase::getAllowedMethods()
JsCallbackBase::methodNotAllowedMessage in src/Plugin/Js/JsCallbackBase.php
Message to show when a callback was requested with an invalid HTTP method.

File

src/Plugin/Js/JsCallbackBase.php, line 154

Class

JsCallbackBase
Base JsCallback class.

Namespace

Drupal\js\Plugin\Js

Code

public function getAllowedMethods() {
  return $this->pluginDefinition['allowed_methods'];
}