You are here

public function SocialGroupHero::getGroupHeroImageStyle in Open Social 8.7

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroImageStyle()
  2. 8.5 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroImageStyle()
  3. 8.6 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroImageStyle()
  4. 8.8 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroImageStyle()
  5. 10.3.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroImageStyle()
  6. 10.0.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroImageStyle()
  7. 10.1.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroImageStyle()
  8. 10.2.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroImageStyle()

Function that determines the group hero croptype.

Return value

string The crop style.

File

modules/social_features/social_group/src/SocialGroupHero.php, line 50

Class

SocialGroupHero
Class SocialGroupHero.

Namespace

Drupal\social_group

Code

public function getGroupHeroImageStyle() : string {
  return $this
    ->cropToStyle($this
    ->getGroupHeroCropType());
}