function BlockVariantTrait::getRegionAssignment

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

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 $configuration['region'] ?? NULL;
}