How to hook into field creation (form successfully processed)?

Solutions

Field storage configs and field configs are config entities hand have the standard hook_ENTITY_TYPE_presave/insert/update/delete() hooks.

/**
 * Implements hook_ENTITY_TYPE_insert() for 'field_storage_config'.
 */
function comment_field_storage_config_insert(FieldStorageConfigInterface $field_storage) {
}
Tags: Entities / Drupal 8

Similar questions

some css of same file getting processed some not
In my custom theme I have two stylesheets; style.css and nice-menu-custom.css. If I would change some silly old css for testing - like body{color:lime;} it would affect the site as normal. However, some other css changes to the same file that get uploaded just simply don't affect the site. None of the width or float properties are working I have th...
Ajax processed not added on link element
I am stuck on a case where I am trying to ajaxify a link, following the tutorial placed here http://clikfocus.com/blog/simple-ajax-example-drupal-6-and-7. The problem is that the .ajax-processed is not added to the link. Can you suggest any common pitfalls here? The weirdest part is that some of the other modules is blocking the functionality. Coul...
Why isn't my integer value processed correctly with PHP in Rules?
My articles have a field collection field and one of the fields is an integer. Users can add as many fields as they want. I'd like to reward them some userpoints, equal to the total value in their saved fields, but with an overall maximum of 5. e.g. A user saves a first field with a value of 3. Therefore, he's awarded 3 points. When he saves anothe...
Emails are not being processed in hook_node_presave and hook_node_insert
I'm using htmlmail module. I'm trying to send an email after node save. So I put drupal_mail() into hook_node_insert() or hook_node_presave(), but when I'm doing this, the body of my emailes are empty. The source looks literally like this: The templates are not processed. The hook_preprocess_htmlmail() function in template.php is not beeing invoked...
How do I know when a render array will be processed properly?
I'm still getting to grips with render arrays and there similarity to FAPI arrays is a point of confusion. I'm customizing a node form using hook_form_alter and I wanted to insert some custom markup in place of a field. I have inserted a table render array as a child of a the field FAPI container array and much to my surprise the table was rendered...
Save Ubercart order in database, processed through custom payment gateway
I am developing a custom payment gateway module for ubercart, I am able to complete an order on the third party payment system using their api and its working fine, the problem I am facing is how to save that completed order in the database. If we will see in paypal payment gateway for ubercart when we complete an order, Under store option we have ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.