SPsreenu paruchuriinsreenidrupaldev.hashnode.dev·May 10, 2023 · 2 min readReceive Notification from Acquia Cloud after code deploy or code update to Webex SpacesIf we using Acquia Cloud for Drupal Project Deployment, and we are using Webex in our project, use the below procedure to send notifications after successful code deployment. Step 1 With your Webex email you need to log in to http://apphub.webex.com/...00
SPsreenu paruchuriinsreenidrupaldev.hashnode.dev·May 8, 2023 · 1 min readHow to alter Core Existing Actions using hook_action_info_alterIn Drupal 9 /10 We have a core Actions Plugin defined in docroot/core/lib/Drupal/Core/Action/ActionManager.php which is providing a hook to alter Action annotations, I used the below code to alter the existing Action Class with a New one In your cust...00
SPsreenu paruchuriinsreenidrupaldev.hashnode.dev·May 8, 2023 · 1 min readRemove entity_keys from the Entity using hook_updateIf we have a custom entity, we have a property called entity_keys[ https://www.drupal.org/docs/drupal-apis/entity-api/creating-a-content-entity-type-in-drupal-8], - entity_keys: How to access the fields. Analog to 'nid' or 'uid'. if we create a cust...00
SPsreenu paruchuriinsreenidrupaldev.hashnode.dev·Apr 28, 2023 · 1 min readDrupal 9 : How to exclude node from sitemap.xmlSometimes we need to write some code to exclude nodes from the sitemap.xml based on custom conditions, The XML sitemap module provides a hook to do this function mymodule_xmlsitemap_link_alter(array &$link, array $context) { if (own_condition) { ...00