Skip to main content

Posts

How to Push or Pull Drupal data to/from Salesforce Org

Recent posts

Speed comparison between HDD and SSD (YouTube Video)

This video shows you how faster a Lenovo Ideapad s340 which is having SSD boots compared to an HDD Samsung laptop. SSD vs HDD / Booting Speed of Lenovo Ideapad S340 An SSD is flash storage and has no moving parts inside. SSD storage is much faster than its HDD equivalent. HDD storage is made up of magnetic tape and has mechanical parts inside. They're larger than SSDs and much slower to read and write #aksAviyalVlog #lenovoS340 #ideapad #S340 #budgetLaptop #SSD #highPerformance #bestLaptop #lightWeightLaptop #SSDvsHDD

How to convert an Internal HDD to Portable Hard Disk

This video explains converting an Internal Desktop SATA HDD to Portable external HDD. To buy the case : Check this out at Amazon.in Terabyte 2 in 1 USB 2.0 External Hard Drive Casing (Black) https://www.amazon.in/dp/B06XNQWJ21/ref=cm_sw_r_other_apa_i_LFzQEbMG7KCY6 #aksAviyalVlog #technology #hddtoexternal

Mapping aditional attributes coming from SimpleSAML ADFS

For example , consider if ADFS SSO giving additional parameters like first name, surname, job title, etc., so how we map these additional attributes? The 'simplesamlphp_auth' module gives us the option to map username, email, etc., from its user sync configuration page, buts it's not sufficient to map all fields. So here I would like to mention a way to map the additional fields. There is a hook available for this. hook_simplesamlphp_auth_user_attributes I have a module named general in my code path. So I will write the above hook like below. <?php /* *  * Mapping of additional parameters/SAML attributes to Drupal user profile fields.  * @param \Drupal\user\UserInterface $account  * The Drupal account/user  * @param array $attributes  * The SimpleSAMLphp attributes for this account.   */ function general_simplesamlphp_auth_user_attributes ( \ Drupal \ user \ UserInterface $account , $attributes ) {    $first_name = $attributes [ 'h

SSO Implementation using SimpleSAML - in Drupal

A great tutorial here : https://www.chapterthree.com/blog/how-to-configure-simplesamlphp-for-drupal-8-on-acquia After successfully setting the library and modules you have to send the metadata to the ADFS provider. They will send you an XML adfs metadata. You need to convert the XML metadata into PHP array, for that please go to the simplesaml configuration page. Which is normally http://www.examplesite.com/simplesaml Go to Federation tab Click the link labelled 'XML to SimpleSAMLphp metadata converter'. Which will ask you to log-in(if you are not logged in) Paste the XML metadata/or upload the XML file here and click parse, you will get the required PHP array Copy and paste the content in /simplesamlphp/metadata/saml20-idp-remote.php

Content export to CSV, JSON or XML

1. Download and install Views Data Export Module (https://www.drupal.org/project/views_data_export) If you are using composer to install the module, then all the dependencies will automatically be downloaded.  Otherwise, follow the below steps 1.a. Download and install the CSV Serialization module(https://www.drupal.org/project/csv_serialization), this module requires a library League\Csv. So if you trying to install this module you may get below error message CSV serialization requires the League\Csv library. 1.b To fix the above issue, download and install Ludwig module (https://www.drupal.org/project/ludwig) It provides a manual alternative to Composer. After installing Ludwig, go to reports > packages. Follow the instructions mentioned on that page. You may be instructed to download the library and copy to a specified folder. Do as per that then, 1.c Install CSV Serialization and Views Data export modules respectively. After successful installation, Follow

Drupal 8 Interview questions

What are the custom entities? When and how it can be used? https://opensenselabs.com/blog/tech/how-create-custom-entity-drupal-8 How to create a patch? Mysql rollback to flag What are cache tags in Drupal 8? https://www.drupal.org/docs/8/api/cache-api/cache-tags How to create a module using Drupal console? How to deploy code - Acquia Custom entities into the single table Why we need an interface? An interface allows unrelated classes to implement the same set of methods, regardless of their positions in the class inheritance hierarchy. An interface enables you to model multiple inheritances because a class can implement more than one interface whereas it can extend only one class. How to pass the interface variable in the constructor How to make a string to upper case in Twig To make a string in upper case use filter 'upper' {{ 'a string'|upper }} How to create a custom pipe. https://symfony.com/doc/current/templating/twig_extension.html What happens behind