<?php
// Positional arguments.
$pieces = explode('-', 'piece1-piece2-piece3');
// Named arguments.
$pieces = explode(delimiter: '-', string: 'piece1-piece2-piece3');
// or
fazni@drupal:~$ git checkout master
fazni@drupal:~$ git branch -m master main
fazni@drupal:~$ git fetch
fazni@drupal:~$ git branch --unset-upstream
fazni@drupal:~$ git branch -u origin/main
fazni@drupal:~$ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
fazni@drupal:~$ drush pm-list --type=module --status=enabled --format=csv > module_list.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Logging. | |
$config['system.logging']['error_level'] = 'verbose'; | |
$config['dblog.settings']['row_limit'] = 1000; | |
// Temp files. | |
$config['system.file']['path']['temporary'] = '/tmp'; | |
// Aggregation. | |
$config['system.performance']['css']['preprocess'] = FALSE; |
$query = \Drupal::entityQuery('node');
$group = $query->orConditionGroup()
->condition('uid', 22)
->condition('uid', 14)
->condition('uid.entity.name', 'admin')
$entity_ids = $query->condition('type', 'article')
->condition($group)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush ev "drupal_set_installed_schema_version('module_name', 8801)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `git branch -a |grep remotes |awk '{print $1}' | cut -d"/" -f 3,4,5 |grep -v ^master$ |grep -v ^HEAD$`; do echo "`git log -1 --pretty=format:\"%an (%ae)\" origin/$i`|$i"; done |sort > /tmp/branches.csv |
NewerOlder