public function Tabs::getClasses in Field Group 8
Same name and namespace in other branches
- 8.3 src/Plugin/field_group/FieldGroupFormatter/Tabs.php \Drupal\field_group\Plugin\field_group\FieldGroupFormatter\Tabs::getClasses()
Get the classes to add to the group.
Overrides FieldGroupFormatterBase::getClasses
1 call to Tabs::getClasses()
- Tabs::preRender in src/
Plugin/ field_group/ FieldGroupFormatter/ Tabs.php - Allows the field group formatter to manipulate the field group array and attach the formatters rendering element.
File
- src/
Plugin/ field_group/ FieldGroupFormatter/ Tabs.php, line 131
Class
- Tabs
- Plugin implementation of the 'horizontal_tabs' formatter.
Namespace
Drupal\field_group\Plugin\field_group\FieldGroupFormatterCode
public function getClasses() {
$classes = parent::getClasses();
$classes[] = 'field-group-' . $this->group->format_type . '-wrapper';
return $classes;
}