public function StyleswitcherStyleForm::title in Style Switcher 3.0.x
Same name and namespace in other branches
- 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
1 string reference to 'StyleswitcherStyleForm::title'
File
- src/
Form/ StyleswitcherStyleForm.php, line 204
Class
- StyleswitcherStyleForm
- Provides a form to add/edit a style.
Namespace
Drupal\styleswitcher\FormCode
public function title(array $style) {
return $style['label'];
}