You are here

public function SocialGroupHero::getGroupHeroCropType in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
  2. 8.5 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
  3. 8.6 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
  4. 8.7 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
  5. 8.8 modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
  6. 10.0.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
  7. 10.1.x modules/social_features/social_group/src/SocialGroupHero.php \Drupal\social_group\SocialGroupHero::getGroupHeroCropType()
  8. 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_group

Code

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';
}