Needs review
Project:
Snippet Manager
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Nov 2022 at 12:23 UTC
Updated:
5 Dec 2024 at 12:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kiseleva.t commentedBy some reason couldn't make a fork with MR, so attached patch here.
Main changes:
Comment #3
chi commentedThat would make it impossible to deploy snippets through Drupal configuration system.
I think Snippets as content entities is a completely different use case which needs a different module.
You might want to take a look at Twig Field.
Comment #4
kiseleva.t commented> I think Snippets as content entities is a completely different use case which needs a different module.
Makes sense.
So patch will be helpful if it used as content already and caused issues as in my case.
Corrected an update when no existing snippets, otherwise it failing due to Division by zero.
Comment #5
punamshelkeHi
I have added patch for drupal 9.5
Comment #6
punamshelkeComment #7
valery.suslov commentedRe-rolled patch #4 for 2.0.1
Comment #10
valery.suslov commentedReroll #4 for 2.0.1
Comment #11
chetananemade commentedHere is the patch compatible with Drupal ^10.3 || ^11.0 for snippet_manager version 3.0.0
Comment #12
chetananemade commentedNew patch compatible with Drupal ^10.3 || ^11.0 for snippet_manager version 3.0.0