public function hasMembershipService()
    {

        $has = !empty($this->contextId);
        if ($has) {
            $has = !empty($this->getContext()->getSetting('custom_context_memberships_url'));
        }

        return $has;

    }
public function hasMembershipService()
    {

        $has = !empty($this->contextId);
        if ($has) {
            $has = !empty($this->getContext()->getSetting('custom_context_memberships_url'));
        }

        return $has;

    }
public function hasMembershipService ( ) { $ has = ! empty ( $ this -> contextId ) ; if ( $ has ) { $ has = ! empty ( $ this -> getContext ( ) -> getSetting ( 'custom_context_memberships_url' ) ) ; } return $ has ; }
Check if the Membership service is supported.

@return boolean True if this resource link supports the Membership service
Check if the Membership service is supported .