class ThreeColumnLayout in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php \Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout
- 9 core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php \Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout
Configurable three 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\ThreeColumnLayout
- 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 ThreeColumnLayout
1 string reference to 'ThreeColumnLayout'
- 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/ ThreeColumnLayout.php, line 11
Namespace
Drupal\layout_builder\Plugin\LayoutView source
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';
}
}