protected function Bootstrap4::setRowClassOptions in GridStack 8.2
Sets the optional plugin engine classes for options, row, hard-coded.
@inheritdoc
Overrides GridStackEnginePluginBase::setRowClassOptions
File
- src/
Plugin/ gridstack/ engine/ Bootstrap4.php, line 41
Class
- Bootstrap4
- Provides a GridStack Bootstrap 4 layout engine.
Namespace
Drupal\gridstack\Plugin\gridstack\engineCode
protected function setRowClassOptions() {
if (!isset($this->setRowClassOptions)) {
$gutters[] = 'no-gutters';
$flex_direction = [
'flex-row',
'flex-column',
'flex-row-reverse',
'flex-column-reverse',
];
$flex_wrap = [
'flex-wrap',
'flex-nowrap',
'flex-wrap-reverse',
];
$justify_content = [
'justify-content-start',
'justify-content-end',
'justify-content-center',
'justify-content-between',
'justify-content-around',
];
$align_items = [
'align-items-start',
'align-items-end',
'align-items-center',
'align-items-baseline',
'align-items-stretch',
];
$align_content = [
'align-content-start',
'align-content-end',
'align-content-center',
'align-content-between',
'align-content-around',
'align-content-stretch',
];
$align_self = [
'align-self-auto',
'align-self-start',
'align-self-end',
'align-self-center',
'align-self-baseline',
'align-self-stretch',
];
$this->setRowClassOptions = [
'gutters' => $gutters,
'flex_direction' => $flex_direction,
'flex_wrap' => $flex_wrap,
'justify_content' => $justify_content,
'align_items' => $align_items,
'align_content' => $align_content,
'align_self' => $align_self,
];
}
return $this->setRowClassOptions;
}