sebaz → created an issue.
What is new in this concept when you can use dependency injection or just override User entity clas by your own class set in hook_entity_type_alter()
/**
* Implements hook_entity_type_alter().
*/
function my_module_entity_type_alter(array &$entity_types) {
if (isset($entity_types['user'])) {
$entity_types['user']->setClass(\Drupal\my_module\Entity\CustomUser::class);
}
}
?
Use PHP 7.4 or newer.
It never was issue about getting the value but how it is rendered.
Method getValue()
vs render()
SebaZ → created an issue.
It is not fixed because module still remains as compatible with all 9.x versions, it should require ^9.4 | 10
or split into 2 versions like
Reroute Email done it earlier
🐛
Use of ModuleHandler::invokeAllWith() breaks Drupal with core < D9.4
Fixed
:
- one branch for older ^8.8 || <9.4
- second branch for ^9.4 || ^10
Try this module.
As I mentioned before. It is a copy of Counter
field in Views called Counter fixed output
. This module extends core Counter Views plugin class and overrides
render()
method.
Counter is written per project so I can't share it.
Just extend Counter class.
Remember that unique name of counter which is ViewField you have to set in annotation. You will need config schema also.
I've made my own counter. It is just a plugin to the Views module so copy the original one, inherit the original class and override methods shown in patches. Works a hell :)
The same problem here. WebP option is not available in Convert types list.
You don't need to check the admin label existance. Take a look at adminLabel() method implementation.
@Abyss
that's what I wrote in proposed resolution: change requirements ;)
Are you sure about that "Limit allowed HTML tags and correct faulty HTML" filter is not required?
How do you manage issue with bugged or not working resizing on edit again after save a content? Resizing works only before save the node. Later it is impossible without this filter.
Are you trying to use it with CKEditor 5? Have you read instruction especially:
4. Enable the filters Limit allowed HTML tags and correct faulty HTML, Resize media images and Embed media. The Resize media images filter needs to run before the Embed media filter.
5. Configure the Embed media filter to allow at least the Image media bundle to be inserted. Resizing for other media bundles is not supported at this point.
It should be wider explained on module page. Maybe some difference to Entity Clone?
@orakill explanation in #2 reminds me how node_clone → worked in D7 which was pre-filling form and was allowing you to save the node (with proper filling missing fields) or not.
It can be recursion problem as mentioned in #2 but also it can be that your entity with sub-entities are very big to clone it in one step.
It is duplicate and works as designed. You have to select Clone entity option for reference field to paragraphs
In my opinion it works as designed.
@mei2020 in #3 💬 Views paragraph relationship broken on old entity after clone. Closed: works as designed described how it works and how it has to be done. Reference have to be cloned to separate old and new node with different values in reference field. Especially when you are not only linking to some entity but if you create new one with node.
Entity usage is really big thing! But... inline upload with ckedior adds simple file:image
entity reference in file_usage
db table. There is one problem, it not follows after deleting it from body field ;) but still there is a logic which can be used to fill custom hidden reference field storing media added to node.
@mfby2k
check this issue
CKEditor 5 compatibility
📌
CKEditor 5 compatibility
Active
However, so far, you will need to run the CKEditor 4 legacy module ( https://www.drupal.org/project/ckeditor → ), which, as of now, is supported until end of 2023 only.
If you want to continue running Insert, it is possible to upgrade to Drupal 10, though an upgrade to CKEditor 5 is not possible at the moment.
No, I've dropped the idea of using Webforms to this task. Entityform did what I want without special integration.
SebaZ → created an issue.
It looks like it is not fixed in 100% because of passing contextual filters as arguments.
When you set path to sorting page with argument placeholder like /admin/content/sort/%
where argument is taxonomy_term referenced by nodes it is not working. There is an error with no arg_0.
AH01071: Got error 'PHP message: Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\MissingMandatoryPara
metersException: "Some mandatory parameters are missing ("arg_0") to generate a URL for route "view.slider.page_1"." at /var/www/html/core/lib/Drupal/Core/Routing/UrlGenerator.php line 182'.
It looks it tries to find or add argument but there is no one.
It works only if you have unique sorting page path. When you want dynamic sorting by contextual filter as an argument it is not working.
Update to 2.0 version of DrqaggableViews module is solving this problem Introduce Contextual Link to Reorder View Page ✨ Introduce Contextual Link to Reorder View Page Fixed .
Patch in linked issue can work on 8.x version too. It adds just 2 news hooks altering contextual links and adding special one for ordering.
You are right!
Patch from
post #3 →
in this
issue (#3177867: Adding a 'Paragraphs' field to a Feed's mapping throws error)
🐛
Adding a 'Paragraphs' field to a Feed's mapping throws error
RTBC
and patch from
post #9 →
from mentioned issue
🐛
Only allowed to map to 'text' fields in Feeds
Needs work
showed elements in the list.
The same here, patch only eliminates error but not solves problem with no fields from paragraph to choose. List is empty.