The new bundle classes introduced in 9.3 look great! I've got a use case that calls for that exact model, where we have a base content type with fields that will be common to all instances, extended by bundle classes that provide additional fields for specific content types. So, I've got a custom content entity and a couple of bundle classes to go along with it, all generated in drush 11, and I've registered my bundles in hook_entity_bundle_info()
Following an announcement advising that the Core module "Color" will be deprecated, I'm trying to install the replacement: Color Backport but I receive the following error:
Could not find package drupal/color-color
Steps:
I uninstalled the core module using the web interface - Now the module is not checked
I run $ composer require 'drupal/color-color:^1.0'
Hoping someone might be able to help me out. I have a custom Drupal 8 module which has a webform composite element with some settings/properties that are fields where I can either enter a webtoken to capture some data from the form or simply enter some data for later retrieving on the webform handler side. The issue is that I thought this data would be included in $_POST but it's not so I'm trying figure out how I can retrieve the data after the form is submitted. FYI, I don't even see this data being stored in the "webform_submission_data" table so not sure where it's being saved.
Hi All,
I'm wondering if there's any sort of JavaScript API for the Media/Media Library modules. I'm writing a custom module that has some front end code that needs to detect when a media item is selected (or removed) from a Media field. I also need to be able to grab the src URL of the thumbnail, so I need to wait for the AJAX call to finish before the event triggers. Is there a way for me to do this? Similar to how for CKEditor there's CKEDITOR.instances[id].on('change', function(){}) I'm hoping for an event to hook into.