You are here

public function Webhook::setTitle in Webhooks 8

Sets the webhook title.

Parameters

string $title: The webhook title.

Return value

\Drupal\webhook\WebhookInterface The called webhook entity.

Overrides WebhookInterface::setTitle

File

modules/webhook/src/Entity/Webhook.php, line 58

Class

Webhook
Defines the webhook entity class.

Namespace

Drupal\webhook\Entity

Code

public function setTitle($title) {
  $this
    ->set('title', $title);
  return $this;
}