protected function ResponsiveTrait::createBreakpointsStyleFormFields in Bootstrap Styles 1.0.x
Create breakpoints fields for a given field.
Parameters
array $form: An associative array containing the structure of the form.
string $field_name: The field name.
string $group_id: The plugin group id.
array $storage: An associative array containing the form storage.
string $storage_key: The storage key of the field in the storage array if it's different from the field name.
2 calls to ResponsiveTrait::createBreakpointsStyleFormFields()
- BackgroundColor::buildStyleFormElements in src/
Plugin/ BootstrapStyles/ Style/ BackgroundColor.php - TextColor::buildStyleFormElements in src/
Plugin/ BootstrapStyles/ Style/ TextColor.php
File
- src/
ResponsiveTrait.php, line 230
Class
- ResponsiveTrait
- A Trait for responsive methods.
Namespace
Drupal\bootstrap_stylesCode
protected function createBreakpointsStyleFormFields(array &$form, string $field_name, string $group_id, array $storage, string $storage_key = NULL) {
foreach ($this
->getBreakpointsKeys() as $breakpoint_key) {
$this
->createBreakpointStyleFormField($form, $field_name, $breakpoint_key, $group_id, $storage, $storage_key);
}
}