src/DrupalExtension/Context/ResponsiveContext.php
protected function getDeviceResolution($name) {
    Assert::keyExists($this->devices, $name, "Device '{$name}' not found.");
    $service = $this->getContainer()->get('drupal.behat.component.resolution');
    $service->parse($this->devices[$name]);
    return $service;
  }
protected function getDeviceResolution($name) {
    Assert::keyExists($this->devices, $name, "Device '{$name}' not found.");
    $service = $this->getContainer()->get('drupal.behat.component.resolution');
    $service->parse($this->devices[$name]);
    return $service;
  }
protected function getDeviceResolution ( $ name ) { Assert :: keyExists ( $ this -> devices , $ name , "Device '{$name}' not found." ) ; $ service = $ this -> getContainer ( ) -> get ( 'drupal.behat.component.resolution' ) ; $ service -> parse ( $ this -> devices [ $ name ] ) ; return $ service ; }
Get device resolution.

@param string $name
Device name.

@return \NuvoleWeb\Drupal\DrupalExtension\Component\ResolutionComponent
Resolution object.
Get device resolution .