protected function Settings::getBreakpoints in CKEditor Bootstrap Grid 2.0.x
Helper to grab existing BS breakpoints.
@todo make these configurable in the case of custom.
Return value
array[] The available Breakpoints.
1 call to Settings::getBreakpoints()
- Settings::buildForm in src/
Form/ Settings.php - Form constructor.
File
- src/
Form/ Settings.php, line 40
Class
- Settings
- Configuration for CKEditor BS Grid.
Namespace
Drupal\ckeditor_bs_grid\FormCode
protected function getBreakpoints() {
$breakpoints = [
'xs' => [
'bs_label' => $this
->t('Extra Smaill (xs)'),
'prefix' => 'none',
],
'sm' => [
'bs_label' => $this
->t('Small (sm)'),
'prefix' => 'sm',
],
'md' => [
'bs_label' => $this
->t('Medium (md)'),
'prefix' => 'md',
],
'lg' => [
'bs_label' => $this
->t('Large (lg)'),
'prefix' => 'lg',
],
'xl' => [
'bs_label' => $this
->t('Extra large (xl)'),
'prefix' => 'xl',
],
'xxl' => [
'bs_label' => $this
->t('Extra extra large (xxl)'),
'prefix' => 'xxl',
],
];
return $breakpoints;
}