You are here

public function Edit::setTitle in SimpleAds 8

Same name in this branch
  1. 8 src/Form/Groups/Edit.php \Drupal\simpleads\Form\Groups\Edit::setTitle()
  2. 8 src/Form/Ads/Edit.php \Drupal\simpleads\Form\Ads\Edit::setTitle()
  3. 8 src/Form/Campaigns/Edit.php \Drupal\simpleads\Form\Campaigns\Edit::setTitle()

Set page title.

1 string reference to 'Edit::setTitle'
simpleads.routing.yml in ./simpleads.routing.yml
simpleads.routing.yml

File

src/Form/Campaigns/Edit.php, line 18

Class

Edit
Edit advertisement campaign form.

Namespace

Drupal\simpleads\Form\Campaigns

Code

public function setTitle($type = NULL, $id = NULL) {
  $campaigns = (new Campaigns())
    ->setId($id)
    ->load();
  return $this
    ->t('Edit <em>@name</em>', [
    '@name' => $campaigns
      ->getCampaignName(),
  ]);
}