class TwoColumnLayout in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Plugin/Layout/TwoColumnLayout.php \Drupal\layout_builder\Plugin\Layout\TwoColumnLayout
- 9 core/modules/layout_builder/src/Plugin/Layout/TwoColumnLayout.php \Drupal\layout_builder\Plugin\Layout\TwoColumnLayout
Configurable two column layout plugin class.
@internal Plugin classes are internal.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\Core\Layout\LayoutDefault implements LayoutInterface, PluginFormInterface, PreviewAwarePluginInterface uses ContextAwarePluginAssignmentTrait, ContextAwarePluginTrait
- class \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase implements PluginFormInterface
- class \Drupal\layout_builder\Plugin\Layout\TwoColumnLayout
- class \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase implements PluginFormInterface
- class \Drupal\Core\Layout\LayoutDefault implements LayoutInterface, PluginFormInterface, PreviewAwarePluginInterface uses ContextAwarePluginAssignmentTrait, ContextAwarePluginTrait
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of TwoColumnLayout
1 string reference to 'TwoColumnLayout'
- layout_builder.layouts.yml in core/
modules/ layout_builder/ layout_builder.layouts.yml - core/modules/layout_builder/layout_builder.layouts.yml
File
- core/
modules/ layout_builder/ src/ Plugin/ Layout/ TwoColumnLayout.php, line 11
Namespace
Drupal\layout_builder\Plugin\LayoutView source
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';
}
}