Script to add files in S3 bucket folder and add files on new location using S3 api or s3fs module.

Script to add files in S3 bucket folder and add files on new location
************************************************************
try {
$config = _s3fs_get_config();
$s3 = _s3fs_get_amazons3_client($config);
}
catch (S3fsException $e) {
form_set_error('form', $e->getMessage());
return FALSE;
}

How is credit granted for Drupal core issues

There are three ways issue contributors get credits on drupal.org:

Entityreference subfields for Migrate

After the #1676646: make migrate field handler behave the same way as term reference: accept entity labels, allow creation of entities patch will be committed, there'll be available three new sub-fields for Entityreference field:

  • source_type: If the option is set to 'name', there would be used text label of an entity, rather than its ID in the source column.
  • create_entity: If the option is set to TRUE (or any other value different from FALSE/0), and the source_type is set to 'name', then if no entity was found for the given label, it will be created automatically.
  • ignore_case: If this option is TRUE, then case differences (uppercase vs. lowercase) between source data and existing entity names will be ignored. The default behavior is to not ignore case.

Recovering the administrator password from UI

There are many methods to recover admin password described here https://www.drupal.org/node/44164 but this method gives you a admin panel to recover admin username and password.

This gives easy access and UI to generate admin password. This will let you know what is the current admin username in system.

Recovering the administrator password from UI

How to programmatically add a product variation to the cart in Drupal commerce 2.x (Drupal 8)

Playing a bit with Drupal commerce in Drupal 8, we notice that several functions that we used to use in the past with D7 are gone in D8, or they've had several changes, dued to the new API.

Drupal commerce has lots of changes. The new concept give us more flexibility and features (for example, we don't need a content type to display our products, because they have now their own display page, the product variations are now in commerce core, or the Store concept.).

Drupal core deprecation policy

Why we deprecate

In Drupal 8, minor updates can introduce new APIs and features. When a new API is added, the old API will be deprecated in favor of the new one. We cannot remove the old API in a minor release because Drupal 8 makes a backwards compatibility promise, but it will usually be removed in the next major version (Drupal 9).

Pages

Subscribe with RSS Subscribe to RSS - Contributors