function BlockVariantTrait::getRegionName

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

See also

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

File

src/Plugin/BlockVariantTrait.php, line 112

Class

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

Namespace

Drupal\ctools\Plugin

Code

public function getRegionName($region) {
    $regions = $this->getRegionNames();
    return $regions[$region] ?? '';
}