You are here

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

See also

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

File

src/Plugin/BlockVariantTrait.php, line 93

Class

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

Namespace

Drupal\ctools\Plugin

Code

public function getRegionAssignment($block_id) {
  $configuration = $this
    ->getBlock($block_id)
    ->getConfiguration();
  return isset($configuration['region']) ? $configuration['region'] : NULL;
}