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/Groups/Edit.php, line 18

Class

Edit
Edit advertisement group form.

Namespace

Drupal\simpleads\Form\Groups

Code

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