function BlockVariantTrait::getBlock

Same name in other branches
  1. 8.x-3.x src/Plugin/BlockVariantTrait.php \Drupal\ctools\Plugin\BlockVariantTrait::getBlock()

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);
}