How to check if cookies are allowed

If you want to check within your own PHP code that cookie usage are allowed you can call this method:

if (\Concrete\Package\EuCookieLaw\Src\CookieDisclosure::getInstance()->areCookiesAllowed()) {
    // do something ...
}

The method will return true if the user has accepted cookies or if the users country doesn't required opt-in.