Skip to content

Instantly share code, notes, and snippets.

View shamsher327's full-sized avatar
🏠
Working from home

Shamsher Alam shamsher327

🏠
Working from home
View GitHub Profile
https://patternlab.io/
https://www.videodrupal.org/video/20190512/twig-fractal-drupal-decoupling-ui-components-drupal-data-structures
PDF:
https://www.drupalgovcon.org/sites/default/files/session/slides/2018-05/component_theming_ui_patterns.pdf
Modules:
https://www.drupal.org/project/ui_patterns
https://www.drupal.org/project/components
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024;sudo /sbin/mkswap /var/swap.1;sudo /sbin/swapon /var/swap.1
echo date(DateTime::ISO8601);
// Add coder to run command line interface.
- composer require --dev drupal/coder:^8.2.11
// Get dependency for sniffer.
- composer update dealerdirect/phpcodesniffer-composer-installer acquia/blt sensiolabs-de/deprecation-detector --with-all-dependencies
// Check list of standards packages installed.
- vendor/bin/phpcs -i
// Run to know Drupal practice issue.
@shamsher327
shamsher327 / content_moderation.install
Created March 23, 2021 08:07 — forked from jhedstrom/content_moderation.install
Custom content moderation update hooks from 8.2.x to 8.3.x
<?php
/**
* @file
* Install file for content_moderation.
*/
use Drupal\content_moderation\Entity\ContentModerationState;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Database\Database;