public function Pet::setTitle in Previewable email templates 8.3
Same name and namespace in other branches
- 8.4 src/Entity/Pet.php \Drupal\pet\Entity\Pet::setTitle()
- 8 src/Entity/Pet.php \Drupal\pet\Entity\Pet::setTitle()
Set the Pet title.
Parameters
string $title: Title.
Return value
\Drupal\pet\Entity\PetInterface Pet entity.
Overrides PetInterface::setTitle
File
- src/
Entity/ Pet.php, line 585
Class
- Pet
- Defines the pet entity.
Namespace
Drupal\pet\EntityCode
public function setTitle($title) {
$this
->set('title', $title);
return $this;
}