public static function isLoggedIn($campaignID) {
    $campaignIDs = [];
    $request = \Drupal::request();
    $session = $request->getSession();
    if (!empty($session->get('openy_campaign'))) {
      $openyCampaignSession = $session->get('openy_campaign');
      $campaignIDs = $openyCampaignSession['campaign_ids'];
    }

    return in_array($campaignID, $campaignIDs);
  }
public static function isLoggedIn($campaignID) {
    $campaignIDs = [];
    $request = \Drupal::request();
    $session = $request->getSession();
    if (!empty($session->get('openy_campaign'))) {
      $openyCampaignSession = $session->get('openy_campaign');
      $campaignIDs = $openyCampaignSession['campaign_ids'];
    }

    return in_array($campaignID, $campaignIDs);
  }
public static function isLoggedIn ( $ campaignID ) { $ campaignIDs = [ ] ; $ request = \ Drupal :: request ( ) ; $ session = $ request -> getSession ( ) ; if ( ! empty ( $ session -> get ( 'openy_campaign' ) ) ) { $ openyCampaignSession = $ session -> get ( 'openy_campaign' ) ; $ campaignIDs = $ openyCampaignSession [ 'campaign_ids' ] ; } return in_array ( $ campaignID , $ campaignIDs ) ; }
Check if member already logged in for this Campaign.

@param $campaignID
int Campaign node ID.

@return bool
Check if member already logged in for this Campaign .