ThreeColumnLayout.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\layout_builder\Plugin\LayoutFile
core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.phpView source
<?php
namespace Drupal\layout_builder\Plugin\Layout;
/**
* Configurable three column layout plugin class.
*
* @internal
* Plugin classes are internal.
*/
class ThreeColumnLayout extends MultiWidthLayoutBase {
/**
* {@inheritdoc}
*/
protected function getWidthOptions() {
return [
'25-50-25' => '25%/50%/25%',
'33-34-33' => '33%/34%/33%',
'25-25-50' => '25%/25%/50%',
'50-25-25' => '50%/25%/25%',
];
}
/**
* {@inheritdoc}
*/
protected function getDefaultWidth() {
return '33-34-33';
}
}
Classes
Name | Description |
---|---|
ThreeColumnLayout | Configurable three column layout plugin class. |