You are here

public function Create::setTitle in SimpleAds 8

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

Set page title.

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

File

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

Class

Create
New advertisement campaign form.

Namespace

Drupal\simpleads\Form\Campaigns

Code

public function setTitle($type = NULL) {
  $campaigns = new Campaigns();
  return $this
    ->t('Create new <em>@type</em>', [
    '@type' => $campaigns
      ->getName($type),
  ]);
}