function BlockVariantTrait::getRegionName
Same name in other branches
- 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\PluginCode
public function getRegionName($region) {
$regions = $this->getRegionNames();
return $regions[$region] ?? '';
}