function BlockDisplayVariant::build
Same name and namespace in other branches
- 8.x-3.x tests/modules/ctools_block_display_test/src/Plugin/DisplayVariant/BlockDisplayVariant.php \Drupal\ctools_block_display_test\Plugin\DisplayVariant\BlockDisplayVariant::build()
Builds and returns the renderable array for the display variant.
The variant can contain cacheability metadata for the configuration that was passed in setConfiguration(). In the build() method, this should be added to the render array that is returned.
Return value
array A render array for the display variant.
Overrides VariantInterface::build
File
-
tests/
modules/ ctools_block_display_test/ src/ Plugin/ DisplayVariant/ BlockDisplayVariant.php, line 22
Class
Namespace
Drupal\ctools_block_display_test\Plugin\DisplayVariantCode
public function build() {
return [];
}