Drupal

Fix module config with drupal/core-composer-scaffold

Scenario:
You install a contrib module that supplies configuration via config/install, but the configuration does not match with your system setup. This may result in a ugly (though not breaking) error during installation of your project. You can repair this later on by importing the correct config (for example via drush cim --partial), but the error during installation of the project will persist.

Drupal Entity Extra Field - mind the container

You can add an extra field to a Drupal entity via hook like it is described here: https://gorannikolovski.com/blog/display-and-form-pseudo-fields-drupal-8...

There is one caveat to this explanation. If you use field groups to group such extra fields you need to put them into a container (at least for the form extra fields), otherwise they will not show inside the field group.

So instead of this

Seiten