You are here

public function SkinsEditForm::getTitle in Skinr 8.2

Returns a page title.

Parameters

string $element_type: The current element's type.

string $element: The current element.

string $theme: The theme this

Return value

string

1 string reference to 'SkinsEditForm::getTitle'
skinr_ui.routing.yml in skinr_ui/skinr_ui.routing.yml
skinr_ui/skinr_ui.routing.yml

File

skinr_ui/src/Form/SkinsEditForm.php, line 36
Contains Drupal\skinr_ui\Form\SkinsEditForm.

Class

SkinsEditForm

Namespace

Drupal\skinr_ui\Form

Code

public function getTitle($element_type = NULL, $element = NULL, $theme = NULL) {
  $skin = Skin::create(array(
    'element_type' => $element_type,
    'element' => $element,
    'theme' => $theme,
  ));
  return t('Skin settings for !element !element_type', array(
    '!element_type' => strtolower($skin
      ->elementTypeLabel()),
    '!element' => $skin
      ->elementLabel(),
  ));
}