public function SocialGroupHero::getGroupHeroCropType in Open Social 10.0.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
- 8.5 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
- 8.6 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
- 8.7 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
- 8.8 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
- 10.3.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
- 10.1.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
- 10.2.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
Function that determines the group hero imagestyle.
Return value
string Of the image / crop style.
1 call to SocialGroupHero::getGroupHeroCropType()
- SocialGroupHero::getGroupHeroImageStyle in modules/
social_features/ social_group/ src/ SocialGroupHero.php - Function that determines the group hero croptype.
File
- modules/
social_features/ social_group/ src/ SocialGroupHero.php, line 38
Class
- SocialGroupHero
- Class SocialGroupHero.
Namespace
Drupal\social_groupCode
public function getGroupHeroCropType() : string {
$settings = $this->configFactory
->get('social_group.settings');
// Return the selected style, or the default one.
return $settings
->get('default_hero') ?? 'hero';
}