NOTES 2018-10-17

http://codekarate.com/daily-dose-of-drupal
有很多drupal模块的介绍

git clean -df

//快速把数据表sql文件插入数据库并突破phpmyadmin的大小限制
source C:UsersqqinDownloadsdevportal-without-wincache-2018-1-22.sql

fastCGI/PHH-FPM回答非常精彩
https://segmentfault.com/q/1010000000256516

image captcha refresh issue/patch
https://www.drupal.org/files/issues/image_captcha_refresh-2608540-37.patch

//config和configfactory的区别
//意味着configfactory之后要再去get一个键值
function config($name) {
  return static::getContainer()->get('config.factory')->get($name);
}
function configFactory() {
  return static::getContainer()->get('config.factory');
}

//get和geteditable的区别
function getEditable($name) {
 return $this->doGet($name, FALSE);
 //这里的false就是为了修改做铺垫
}
public function get($name) {
  return $this->doGet($name);
}
immutable英 [ɪˈmjuːtəb(ə)l] 美 [ɪ(m)ˈmjudəb(ə)l]
adj.长期不变的;不可改变的

Drush --debug

it is essential to provide a default value for each argument!

//多站点下的drush cr
drush cr -l http://sdl.devportal

ALU项目git remote -v
aluinternet@svn-1745.prod.hosting.acquia.com:aluinternet.git
用户名@URL:名称.格式

可以删除掉一个remote
git remote remove <name>

I then tried with
export http_proxy=http://username:password@your_proxy:your_port
export https_proxy=https://username:password@your_proxy:your_port
export proxy without quotes

"drupal/wincachedrupal": "^1.11"

In eclipse, when tab show 4 spaces, how to modify:
General > Editors > Text Editors > Insert spaces for tabs (check it)
PHP > Code Style > Formatter > Tab policy (choose "spaces")
PHP > Code Style > Formatter > Indentation size (set to 4)

所有的git配置项
git config -l

Eclipse and Windows newlines
是在eclipse上的对git的配置,core.autocrlf = true
https://stackoverflow.com/questions/1886185/eclipse-and-windows-newlines

这样的正则表示匹不匹配得到都可以
但肯定不会进入()子匹配系统
(?:<p>)?

D8中如何使用composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
composer config repositories.drupal composer https://packages.drupal.org/8
----Inside Composer (也许需要这一步)
export http_proxy=http://135.245.48.34:8000
composer require "drupal/entity_print 2.x" in the SITE DOCROOT

Eclipse:compared with---
HEAD is the version of the file that has already been committed.
The index is the version of the file that has been staged (added) in preparation for a commit, but not yet committed.

这句话在phpmyadmin里面的sql里面是可以执行
就算报错也可以退出然后再登入密码就有效了
SET PASSWORD FOR root@localhost=PASSWORD('root');
为什么这个命令很奇怪
因为这个命令是正对整个mysql的?

在wamp环境中
phpmyadmin.conf.php是貌似无效的

drush entity-updates -l http://sdl.devportal


kint($form_state);
$form_state->set('account', $user);
kint($form_state);
打印之前, $storage['account']没有
打印之后, 就有了这个值

FormBuilder.php line 495

file_managed not delete:
https://drupal.stackexchange.com/questions/160156/files-in-the-file-managed-table-with-status-of-0-not-deleting-on-cron







原文地址:https://www.cnblogs.com/qinqiu/p/9804111.html