PHP code example of caxy / drupal-project

1. Go to this page and download the library: Download caxy/drupal-project library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

caxy / drupal-project example snippets




// On Acquia Cloud, this include file configures Drupal to use the correct
// database in each site environment (Dev, Stage, or Prod). To use this
// settings.php for development on your local workstation, set $db_url
// (Drupal 5 or 6) or $databases (Drupal 7 or 8) as described in comments above.
if (file_exists('/var/www/site-php')) {

  // As of 29 October 2015, Acquia Cloud does not support release candidates of Drupal 8,
  // so we must define `conf_path` function which was removed between beta15 and RC1.
  if (!function_exists('conf_path')) {
    function conf_path() {
      $request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
      return \Drupal\Core\DrupalKernel::findSitePath($request, FALSE);
    }
  }
  



/**
 * Implements hook_system_info_alter().
 */
function MODULE_system_info_alter(array &$info, \Drupal\Core\Extension\Extension $file, $type) {
  // remove composer_manager dependency.
  if (isset($info['dependencies']) && !empty($info['dependencies'])) {
    $info['dependencies'] = array_diff($info['dependencies'], array('composer_manager'));
  }
}