You are here

public function StyleswitcherStyleForm::title in Style Switcher 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Form/StyleswitcherStyleForm.php \Drupal\styleswitcher\Form\StyleswitcherStyleForm::title()

The _title_callback for the style edit form.

Parameters

array $style: Style array as returned from styleswitcher_style_load().

Return value

string Label of the style.

See also

styleswitcher_style_load()

1 string reference to 'StyleswitcherStyleForm::title'
styleswitcher.routing.yml in ./styleswitcher.routing.yml
styleswitcher.routing.yml

File

src/Form/StyleswitcherStyleForm.php, line 204

Class

StyleswitcherStyleForm
Provides a form to add/edit a style.

Namespace

Drupal\styleswitcher\Form

Code

public function title(array $style) {
  return $style['label'];
}