Typography.php in Bootstrap Styles 1.0.x
File
src/Plugin/BootstrapStyles/StylesGroup/Typography.php
View source
<?php
namespace Drupal\bootstrap_styles\Plugin\BootstrapStyles\StylesGroup;
use Drupal\bootstrap_styles\StylesGroup\StylesGroupPluginBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\bootstrap_styles\ResponsiveTrait;
class Typography extends StylesGroupPluginBase {
use ResponsiveTrait;
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form['typography'] = [
'#type' => 'details',
'#title' => $this
->t('Typography'),
'#open' => FALSE,
];
return $form;
}
public function buildStyleFormElements(array &$form, FormStateInterface $form_state, $storage) {
$this
->buildBreakpointsFields($form, 'typography');
return $form;
}
}