public function Edit::setTitle in SimpleAds 8
Same name in this branch
- 8 src/Form/Groups/Edit.php \Drupal\simpleads\Form\Groups\Edit::setTitle()
- 8 src/Form/Ads/Edit.php \Drupal\simpleads\Form\Ads\Edit::setTitle()
- 8 src/Form/Campaigns/Edit.php \Drupal\simpleads\Form\Campaigns\Edit::setTitle()
Set page title.
1 string reference to 'Edit::setTitle'
File
- src/
Form/ Ads/ Edit.php, line 20
Class
- Edit
- Edit advertisement form.
Namespace
Drupal\simpleads\Form\AdsCode
public function setTitle($type = NULL, $id = NULL) {
$ad = (new Ads())
->setId($id)
->load();
return $this
->t('Edit <em>@name</em>', [
'@name' => $ad
->getAdName(),
]);
}