I am using Drupal 8.9.8 and I have created a custom content type with field types such as plain text, number (integer), and so on. Then, I created Content based on the custom content types and filled in the field values. This generated a /node/2 page.
I want to combine the field values from the custom content type and generate a URL link that will be displayed in the /node/2.
The generated URL will be in the following format based on the content type field values which are set as default values of the below:
field_url = https:/www.example.com?SIG=
field_id = 94ddkf03la1
I have created successfully a module that generates a URL link with .php and .yml accessible from localhost/drupal8/modulename.
I want to accomplish the same functionality, but fetching the values from the custom content type fields.
Where this source code should be placed? Inside modulename.module?
Here is a screenshot of the structure of the custom content type.
I search through the Internet and StackExchange, but I could not figure out or combine the solutions presented.
Please forgive me if the terminology is misleading as I am new to this and I am trying to learn.