You are here

public function JsCallbackBase::csrfToken in JS Callback Handler 8.3

Flag indicating whether callback should validate a CSRF token.

Return value

bool

Overrides JsCallbackInterface::csrfToken

File

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

Class

JsCallbackBase
Base JsCallback class.

Namespace

Drupal\js\Plugin\Js

Code

public function csrfToken() {
  return !!$this->pluginDefinition['csrf_token'];
}