You are here

public function OpenlayersMap::getControl in Openlayers 8.4

Overrides OpenlayersMapInterface::getControl

File

src/Entity/OpenlayersMap.php, line 214

Class

OpenlayersMap
Defines the Openlayers Map entity.

Namespace

Drupal\openlayers\Entity

Code

public function getControl($control) {
  return $this
    ->getControls()
    ->get($control);
}