drush export-config
- new/changed configs go into src/sites/default/config
- Just copy them over to the modules and commit both...
drush export-config
PROFILE.info.yml file.sites/default/config/core.extension.ymlPROJECT.make file and add an entry there as well, e.g.,: flag:
download:
# 2016-7-20
branch: "8.x-4.x"
revision: eceaa7d| <?php | |
| /** | |
| * Get the names of all categories. | |
| * | |
| * @return array | |
| * A list of existing category IDs. | |
| */ | |
| function wysiwyg_template_category_get_names() { | |
| $names = &drupal_static(__FUNCTION__); | |
| if (!isset($names)) { |
| // How to check for permission in Drupal 8 | |
| // Get the current user | |
| $user = \Drupal::currentUser(); | |
| // Check for permission | |
| $user->hasPermission('access administration menu'); | |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| diff --git a/includes/filesystem.inc b/includes/filesystem.inc | |
| index 0f29036..03a8b5f 100644 | |
| --- a/includes/filesystem.inc | |
| +++ b/includes/filesystem.inc | |
| @@ -676,6 +676,8 @@ function drush_scan_directory($dir, $mask, $nomask = array('.', '..', 'CVS'), $c | |
| $key = (in_array($key, array('filename', 'basename', 'name')) ? $key : 'filename'); | |
| $files = array(); | |
| + $nomask = array_merge($nomask, array('node_modules', 'bower_components')); | |
| + |
| <?php | |
| /*** Implements hook_views_query_alter(). | |
| */ | |
| function oa_media_views_query_alter(&$view, &$query) { | |
| if (($query->base_table == 'file_managed') && (!empty($view->filter['og_group_ref_target_id']->options['exposed']))) { | |
| // Modify file views with space filters to handle media attached to nodes and paragraphs | |
| // Ensure we have a relationship between og_membership and oa_media file | |
| if (!empty($query->table_queue['field_oa_media_file_managed__og_membership'])) { | |
| // Table already exists because user is probably filtering on space already |
| # - xdebug | |
| RUN echo xdebug.remote_enable=1 >> /etc/php5/conf.d/20-xdebug.ini;\ | |
| echo xdebug.remote_autostart=0 >> /etc/php5/conf.d/20-xdebug.ini;\ | |
| echo xdebug.remote_connect_back=1 >> /etc/php5/conf.d/20-xdebug.ini;\ | |
| echo xdebug.remote_port=9000 >> /etc/php5/conf.d/20-xdebug.ini;\ | |
| echo xdebug.remote_log=/tmp/php5-xdebug.log >> /etc/php5/conf.d/20-xdebug.ini; |
| /** | |
| * Change content from one input format to another, deleting the old at the end. | |
| * | |
| * @param string $old_format | |
| * Name of the old input format. | |
| * @param string $new_type | |
| * Name of the new input format. | |
| */ | |
| function _myprofile_install_change_input_format($old_format, $new_format) { | |
| // Change the format on all fields. |