You are here

public function Template::setSubject in Workbench Email 8

Same name and namespace in other branches
  1. 2.x src/Entity/Template.php \Drupal\workbench_email\Entity\Template::setSubject()

Sets the subject.

Parameters

string $subject: Template subject.

Return value

self Called instance.

Overrides TemplateInterface::setSubject

File

src/Entity/Template.php, line 154

Class

Template
Defines the Email Template entity.

Namespace

Drupal\workbench_email\Entity

Code

public function setSubject($subject) {
  $this->subject = $subject;
  return $this;
}