function MultiWidthLayoutBase::build
Overrides LayoutDefault::build
File
- 
              core/modules/ layout_builder/ src/ Plugin/ Layout/ MultiWidthLayoutBase.php, line 49 
Class
- MultiWidthLayoutBase
- Base class of layouts with configurable widths.
Namespace
Drupal\layout_builder\Plugin\LayoutCode
public function build(array $regions) {
  $build = parent::build($regions);
  $build['#attributes']['class'] = [
    'layout',
    $this->getPluginDefinition()
      ->getTemplate(),
    $this->getPluginDefinition()
      ->getTemplate() . '--' . $this->configuration['column_widths'],
  ];
  return $build;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
