I hope you take something away...

If you do please leave something for me :)

Drupal 8 Error when synching THEMENAME.settings


I cam across an error when synching configurations from my Drupal 8 local environment to my development environment. The error is as folllows

Error: configuration THEMENAME.settings depends on the THEMENAME extension that will not be installed after import.

Not entirely sure if this is a bug in D8 core but the root cause was that it when exporting the configurations from my local environment the "Configuration manager" module in D8 core was picking up an odd looking configuration. 

Symfony - assigning a value to a computed field on form submit event

Problem: I have a field in my schema that needs to have a value but I cannot make the user input the value in the form. I have to insert it when I am saving the object instance in the database. I can assign a value for this field using the user entered data in the form. How can I do this

Example: For examples sake say I have a filed called FullName, which I have to assign using the user inputs FirstName and LastName.

So basically  FullName = FirstName + " " + LastName.

Solution: Use a event listner  provided by the formBuilder object.