protected function cropToStyle($cropType) :string {
    $values = [
      'hero' => 'social_xx_large',
      'hero_small' => 'social_hero_small',
    ];

    switch ($cropType) {
      case 'hero_small':
        $this->isSmall = TRUE;
      default:
    }

    return $values[$cropType] ?? 'social_xx_large';
  }
protected function cropToStyle($cropType) :string {
    $values = [
      'hero' => 'social_xx_large',
      'hero_small' => 'social_hero_small',
    ];

    switch ($cropType) {
      case 'hero_small':
        $this->isSmall = TRUE;
      default:
    }

    return $values[$cropType] ?? 'social_xx_large';
  }
protected function cropToStyle ( $ cropType ) : string { $ values = [ 'hero' => 'social_xx_large' , 'hero_small' => 'social_hero_small' , ] ; switch ( $ cropType ) { case 'hero_small' : $ this -> isSmall = TRUE ; default : } return $ values [ $ cropType ] ?? 'social_xx_large' ; }
Function that converts crop type to image style.

@param string $cropType
The croptype.

@return string
The associated image style.
Function that converts crop type to image style .