VariantInterface::build

public VariantInterface::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.

File

core/lib/Drupal/Core/Display/VariantInterface.php, line 85

Class

VariantInterface
Provides an interface for DisplayVariant plugins.

Namespace

Drupal\Core\Display

Code

public function build();
doc_Drupal
2016-10-29 09:53:30
Comments
Leave a Comment

Please login to continue.