Amazon_S3_And_CloudFront::get_access_denied_notice_message PHP Method

get_access_denied_notice_message() public method

Get the access denied bucket error notice message
public get_access_denied_notice_message ( boolean $single = true ) : string
$single boolean
return string
    function get_access_denied_notice_message($single = true)
    {
        $quick_start = sprintf('<a class="js-link" href="%s">%s</a>', 'https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/#bucket-restrictions', __('Quick Start Guide', 'amazon-s3-and-cloudfront'));
        $message = sprintf(__("Looks like we don't have write access to this bucket. It's likely that the user you've provided access keys for hasn't been granted the correct permissions. Please see our %s for instructions on setting up permissions correctly.", 'amazon-s3-and-cloudfront'), $quick_start);
        if (!$single) {
            $message = sprintf(__("Looks like we don't have access to the buckets. It's likely that the user you've provided access keys for hasn't been granted the correct permissions. Please see our %s for instructions on setting up permissions correctly.", 'amazon-s3-and-cloudfront'), $quick_start);
        }
        return $message;
    }
Amazon_S3_And_CloudFront