You are here

public function Pet::setTitle in Previewable email templates 8

Same name and namespace in other branches
  1. 8.4 src/Entity/Pet.php \Drupal\pet\Entity\Pet::setTitle()
  2. 8.3 src/Entity/Pet.php \Drupal\pet\Entity\Pet::setTitle()

Set the title for template.

Parameters

string $title: Title of template.

Return value

object Template.

Overrides PetInterface::setTitle

File

src/Entity/Pet.php, line 289

Class

Pet
Defines pet entity class.

Namespace

Drupal\pet\Entity

Code

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