function BlockVariantInterface::addBlock

Same name in other branches
  1. 4.0.x src/Plugin/BlockVariantInterface.php \Drupal\ctools\Plugin\BlockVariantInterface::addBlock()

Adds a block to this display variant.

Parameters

array $configuration: An array of block configuration.

Return value

string The block ID.

File

src/Plugin/BlockVariantInterface.php, line 40

Class

BlockVariantInterface
Provides an interface for variant plugins that use block plugins.

Namespace

Drupal\ctools\Plugin

Code

public function addBlock(array $configuration);