From c8affb020242bc955f438682b4cf1ef1e5ae6519 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Wed, 25 Oct 2023 11:44:36 -0700 Subject: [PATCH 1/3] Allow figure and figcaption in embeddables --- .../sync/core.entity_view_display.media.embeddable.default.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sync/core.entity_view_display.media.embeddable.default.yml b/config/sync/core.entity_view_display.media.embeddable.default.yml index 989b6841..6cebc52a 100644 --- a/config/sync/core.entity_view_display.media.embeddable.default.yml +++ b/config/sync/core.entity_view_display.media.embeddable.default.yml @@ -19,7 +19,7 @@ content: settings: max_width: 0 max_height: 0 - allowed_tags: 'a aside audio b blockquote br button caption cite code dd dl div drupal-media dt em embed form h1 h2 h3 h4 h5 hr i iframe img input label li object ol option p param pre s script select source span strong sub sup table tbody textarea td tfoot th thead tr ul video' + allowed_tags: 'a aside audio b blockquote br button caption cite code dd dl div drupal-media dt em embed form h1 h2 h3 h4 h5 hr i iframe img input label li object ol option p param pre s script select source span strong sub sup table tbody textarea td tfoot th thead tr ul video figure figcaption' third_party_settings: { } weight: 1 region: content From c793427f9950258794878f87e90bb382f27d16d3 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Wed, 25 Oct 2023 11:48:41 -0700 Subject: [PATCH 2/3] Invalidate cache tag when saving site contact details --- src/EventSubscriber/EventSubscriber.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/EventSubscriber/EventSubscriber.php b/src/EventSubscriber/EventSubscriber.php index b7d75c62..ebc88203 100644 --- a/src/EventSubscriber/EventSubscriber.php +++ b/src/EventSubscriber/EventSubscriber.php @@ -3,6 +3,7 @@ namespace Drupal\stanford_profile\EventSubscriber; use Acquia\DrupalEnvironmentDetector\AcquiaDrupalEnvironmentDetector; +use Drupal\Core\Cache\Cache; use Drupal\Core\File\FileSystemInterface; use Drupal\Core\Installer\InstallerKernel; use Drupal\Core\Logger\LoggerChannelFactoryInterface; @@ -104,6 +105,7 @@ public function onEntityPreSave(EntityPresaveEvent $event) { ) { $renewal_date = time() + (InstallerKernel::installationAttempted() ? 0 : 60 * 60 * 24 * 365); $entity->set('su_site_renewal_due', date(DateTimeItemInterface::DATETIME_STORAGE_FORMAT, $renewal_date)); + Cache::invalidateTags(['site-renew-date']); } } @@ -159,7 +161,7 @@ protected static function redirectUser() { // If the renewal date has passed, they should be redirected. $needs_renewal = !getenv('CI') && $site_manager && (strtotime($renewal_date) - time() < 60 * 60 * 24); - $cache->set('su_renew_site:' . $current_user->id(), $needs_renewal, time() + 60 * 60 * 24); + $cache->set('su_renew_site:' . $current_user->id(), $needs_renewal, time() + 60 * 60 * 24, ['site-renew-date']); return $needs_renewal; } From 0bbdca0709177c54fac2f85a832035373a32d0d9 Mon Sep 17 00:00:00 2001 From: pookmish Date: Wed, 25 Oct 2023 14:26:51 -0500 Subject: [PATCH 3/3] 11.0.7 --- CHANGELOG.md | 5 +++++ stanford_profile.info.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ad94e59..cbae5667 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Stanford Profile +11.0.7 +------------------------------------------------------------------------------- +- Invalidate cache tag when saving site contact details +- Allow figure and figcaption in embeddables + 11.0.6 ------------------------------------------------------------------------------- - Fixed event day display with timezones. diff --git a/stanford_profile.info.yml b/stanford_profile.info.yml index 94d8b5e8..cabde51d 100644 --- a/stanford_profile.info.yml +++ b/stanford_profile.info.yml @@ -1,6 +1,6 @@ name: 'Stanford Profile' description: 'Jumpstart Website Profile' -version: 11.0.6 +version: 11.0.7 type: profile project: Stanford core_version_requirement: ^9 || ^10