function BlockDisplayVariant::build

Same name and namespace in other branches
  1. 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

BlockDisplayVariant

Namespace

Drupal\ctools_block_display_test\Plugin\DisplayVariant

Code

public function build() {
    return [];
}