Amazon_S3_And_CloudFront::make_acl_admin_notice PHP Method

make_acl_admin_notice() public method

Make admin notice for when object ACL has changed
public make_acl_admin_notice ( array $s3object )
$s3object array
    function make_acl_admin_notice($s3object)
    {
        $filename = basename($s3object['key']);
        $acl = isset($s3object['acl']) ? $s3object['acl'] : self::DEFAULT_ACL;
        $acl_name = $this->get_acl_display_name($acl);
        $text = sprintf(__('<strong>WP Offload S3</strong> &mdash; The file %s has been given %s permissions on Amazon S3.', 'amazon-s3-and-cloudfront'), "<strong>{$filename}</strong>", "<strong>{$acl_name}</strong>");
        $this->notices->add_notice($text);
    }
Amazon_S3_And_CloudFront