You are here

public function JsCallbackBase::setTitle in JS Callback Handler 8.3

Sets the title for the callback.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup|string $title: The title to set.

Return value

$this

Overrides JsCallbackInterface::setTitle

1 call to JsCallbackBase::setTitle()
Content::execute in src/Plugin/Js/Content.php
Executes the callback.

File

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

Class

JsCallbackBase
Base JsCallback class.

Namespace

Drupal\js\Plugin\Js

Code

public function setTitle($title = '') {
  $this->title = $title;
}