You are here

protected static function SocialGroupSecretSubscriber::getPriority in Open Social 8.7

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

Specifies the priority of all listeners in this class.

The default priority is 1, which is very low. To have listeners that have a "first attempt" at handling exceptions return a higher priority.

Return value

int The event priority of this subscriber.

Overrides HttpExceptionSubscriberBase::getPriority

File

modules/social_features/social_group/modules/social_group_secret/src/EventSubscriber/SocialGroupSecretSubscriber.php, line 45

Class

SocialGroupSecretSubscriber
Class SocialGroupSecretSubscriber.

Namespace

Drupal\social_group_secret\EventSubscriber

Code

protected static function getPriority() {

  // We need a higher priority than R4032Login so that it doesn't create a
  // response to login.
  return 100;
}