You are here

public function BlockVariantTrait::getBlock in Chaos Tool Suite (ctools) 8.3

See also

\Drupal\ctools\Plugin\BlockVariantInterface::getBlock()

3 calls to BlockVariantTrait::getBlock()
BlockVariantTrait::addBlock in src/Plugin/BlockVariantTrait.php
BlockVariantTrait::removeBlock in src/Plugin/BlockVariantTrait.php
BlockVariantTrait::updateBlock in src/Plugin/BlockVariantTrait.php

File

src/Plugin/BlockVariantTrait.php, line 42

Class

BlockVariantTrait
Provides methods for \Drupal\ctools\Plugin\BlockVariantInterface.

Namespace

Drupal\ctools\Plugin

Code

public function getBlock($block_id) {
  return $this
    ->getBlockCollection()
    ->get($block_id);
}