You are here

public function SocialGroupHero::isSmall in Open Social 8.9

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

Small or not.

Return value

bool Is this considered small.

File

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

Class

SocialGroupHero
Class SocialGroupHero.

Namespace

Drupal\social_group

Code

public function isSmall() : bool {

  // Invoke cropToStyle, to get info about the size.
  $this
    ->cropToStyle($this->configFactory
    ->get('social_group.settings')
    ->get('default_hero'));

  // Return info about the size.
  return $this->isSmall;
}