I'm trying to become more comfortable with AJAX outside of forms and have checked some helpful pages to get me to this point. In D7, I built a custom module that loaded up two HTML tables, one with a few hundred rows and a second with a few thousand rows. The latter was wrapped in a div that was hidden. That meant the user had to wait for both tables to finish before the page loads.
I have added a taxonomy list and created an entity reference field within that taxonomy list under "manage fields". The idea was to set the default value of the field to an existing node. Now in the twig I've been trying to retrieve the url. By default the taxonomy name selected is out put {{ content.field_db_product_type }} but my field name for the entity reference is field_product_type_link which should have the url to the content the field is populating. I just cannot get the field constructed correctly to allow me to get some of the values.
I'm new to Drupal and just started creating my first modules.
My knowledge of Drupal is therefor a bit limited at this time, which is also why I ask this question.
Coming from Laravel, everything is built with Objects and fluent interfaces which makes development a breeze.
I have IDE code completion and know which methods I can call, which datatypes are expected, returned etc. except for some interchangeable drivers/adapters.
I am working on the migration of a dedicated cache implementation module from D7 to D8/9 and I haven’t found yet use cases for $allow_invalid=TRUE when we fetch a value from the caches (when an entry has been deleted, it seems logical to receive a FALSE as answer). And as this parameter is in the API, I suppose that it is used, but when?
If someone could give me some information about the use cases for $allow_invalid=TRUE, it would be really helpful in order to finish this migration :)