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