Remove imagemagick
sudo apt-get --purge remove imagemagick
sudo apt autoremove
Install Required package:
sudo apt-get install build-essential
sudo apt-get install checkinstall
<?php | |
/** | |
* Command line tasks. | |
* | |
* @codingStandardsIgnoreStart | |
* @codeCoverageIgnore | |
* @SuppressWarnings(PHPMD) | |
*/ | |
class RoboFile extends \Robo\Tasks { |
Remove imagemagick
sudo apt-get --purge remove imagemagick
sudo apt autoremove
Install Required package:
sudo apt-get install build-essential
sudo apt-get install checkinstall
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
name: client | |
recipe: drupal7 | |
config: | |
webroot: docroot | |
xdebug: true | |
php: '7.1' | |
via: nginx | |
services: | |
appserver: | |
composer: |
[Update 2024] - Take a look at Drupal at your fingertips. Lot's of great stuff there.
// Load file object
$file = File::load($fid);
<?php | |
/** | |
* Implements hook_field_widget_WIDGET_TYPE_form_alter(). | |
* | |
* Place this code into YOUR_MODULE.module file replacing YOUR_MODULE placeholder | |
* with your modules' name. | |
*/ | |
function YOUR_MODULE_field_widget_commerce_product_variation_attributes_form_alter(&$element, FormStateInterface $form_state, $context) { | |
// Make ajax responsive changes on attribute fields' properties. |
<?php | |
// Import arbitrary config from a variable. | |
// Assumes $data has the data you want to import for this config. | |
$config = \Drupal::service('config.factory')->getEditable('filter.format.basic_html'); | |
$config->setData($data)->save(); | |
// Or, re-import the default config for a module or profile, etc. | |
\Drupal::service('config.installer')->installDefaultConfig('module', 'my_custom_module'); |