Skip to content
Snippets Groups Projects
Commit 748ee9c4 authored by Prashant Mishra's avatar Prashant Mishra
Browse files

1. Issue #3382425 by

jeetmail72: Entity shorting 2.Issue #3319705 by gowthami reddy: readme.txt to readme.md
parent e98a4271
No related branches found
No related tags found
No related merge requests found
Readme
================================================================================
# CloudFront Cache Path Invalidate
CONTENTS OF THIS FILE
---------------------
* Introduction
* Requirements
* Installation
* Configuration
INTRODUCTION
================================================================================
Cloudfront Cache Path Invalidate module, you can manage the cache clear of
Amazon Cloudfront through a setting form.
For a full description of the module, visit the
[project page](https://www.drupal.org/project/cloudfront_cache_path_invalidate).
Submit bug reports and feature suggestions, or track changes in the
[issue queue](https://www.drupal.org/project/issues/cloudfront_cache_path_invalidate).
## Table of contents
- Requirements
- Installation
- Configuration
- Maintainers
REQUIREMENTS
================================================================================
Drupal 8.x
CloudFront Setup
## Requirements
This module requires the following :
- Drupal 10.x
- CloudFront Setup
AWS Distribution ID
AWS Access Key
AWS Secret Key
AWS Region
INSTALLATION
================================================================================
admin/config/services/cloudfront-invalidate-url
## Installation
Install the CloudFront Cache Path Invalidate:
Download it from [CloudFront Cache Path Invalidate](https://www.drupal.org/project/cloudfront_cache_path_invalidate) and install it on your website.
- With Composer
`$ composer require 'drupal/cloudfront_cache_path_invalidate'`
CONFIGURATION
================================================================================
## Configuration
This needs the following settings:
Please use below $settings with your AWS Credential in settings.php file
$settings['aws.distributionid'] = '';
$settings['aws.region'] = '';
$settings['aws.access_key'] = '';
$settings['aws.secret_key'] = '';
Alternatively, access_key and secret_key can be shared with s3fs:
$settings['s3fs.access_key'] = '';
$settings['s3fs.secret_key'] = '';
## Maintainers
- Prashant Mishra - [PrashantMishra](https://www.drupal.org/u/prashant-mishra)
\ No newline at end of file
name: 'Cloudfront Cache Path Invalidate'
type: module
description: 'Cloudfront Cache Path Invalidate'
core_version_requirement: ^8 || ^9 || ^10
package: 'Cloudfront CCache Path Invalidate'
core_version_requirement: ^9 || ^10
package: 'Cloudfront Cache Path Invalidate'
configure: cloudfront_cache_path_invalidate.admin_cloudfront_invalidate_url
......@@ -90,8 +90,9 @@ class AutoCloudfrontCacheSettingForm extends ConfigFormBase {
if (NULL === $entity_type->getBundleEntityType()) {
$entity_options[$entity_type->id()] = $entity_type->getBundleLabel();
}
}
// Sort Entity type list by name.
asort($entity_options);
// When the AJAX request occurs, this form will be build in order to process
// form state before the AJAX callback is called. We can use this
......@@ -137,6 +138,8 @@ class AutoCloudfrontCacheSettingForm extends ConfigFormBase {
$entity_bundle_options[$entity_bundle->id()] = $entity_bundle->label();
}
}
// Sort bundle list by name.
asort($entity_bundle_options);
$form['ec_fieldset'][$i]['entity_bundle_container']['ecentitytypebundle'] = [
'#type' => 'select',
......@@ -301,7 +304,7 @@ class AutoCloudfrontCacheSettingForm extends ConfigFormBase {
->set('ec_cloudfront_url', $values_url)
->set('ecgroupcount', count($values))
->save();
$this->messenger()->addStatus('Cloudfront Cache Setting has been saved.');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment