getLayout method

  1. @override
LayoutConfiguration<ContentItem>? getLayout()
inherited

Gets the layout to use for the ContentItem. By default its the layout itself. However this acts as an extension point for custom ContentItems that may have a different strategy for applying layouts.

Implementation

@override
LayoutConfiguration? getLayout() {
  return super.getLayout() ?? category?.layout;
}