Skip to content

Instantly share code, notes, and snippets.

View baikho's full-sized avatar
:octocat:
Working from home

Sang Lostrie baikho

:octocat:
Working from home
View GitHub Profile
@baikho
baikho / je-vous-aimerai-toujours.jpg
Last active October 28, 2020 22:02
Seoul 20190419
je-vous-aimerai-toujours.jpg
@baikho
baikho / drupal-8-ajax-add-more-form.php
Last active August 23, 2022 09:34
Drupal 8 Add More Ajax Form
<?php
namespace Drupal\example\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class AjaxAddMoreForm.
*
@baikho
baikho / drupal-5-6-to-8-password-update.php
Last active October 28, 2020 17:55
Drupal 5/6 to Drupal 8 user passwords migration through batch update hook
<?php
use Drupal\user\Entity\User;
/**
* Implements hook_update_N().
*
* Rehash migrated Drupal 5 MD5 hashes for Drupal 8.
*/
function example_update_8101(&$sandbox) {