You are here

public function Subscription::setTitle in Mailing List 8

Sets the subscription title.

Parameters

string $title: The subscription title.

Return value

\Drupal\mytest\SubscriptionInterface The called subscription entity.

Overrides SubscriptionInterface::setTitle

File

src/Entity/Subscription.php, line 101

Class

Subscription
Defines the subscription entity class.

Namespace

Drupal\mailing_list\Entity

Code

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