Download the PHP package acquia/cohesion without Composer
On this page you can find all versions of the php package acquia/cohesion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cohesion
Acquia Site Studio
Installation with composer
Using composer is the preferred way of managing your modules and themes as composer handles dependencies automatically and there is less margin for error. You can find out more about composer and how to install it here: https://getcomposer.org/. It is not recommended to edit your composer.json file manually.
Open up your terminal and navigate to your project root directory.
Run the following commands to require the module and minimal theme:
Site Studio will install along with several module dependencies from drupal.org.
You can now enable the modules via drush with the following commands:
Upgrading Site Studio
When upgrading to a newer version of Site Studio, the following series of commands will need to be run in this order:
Drush integration
The cohesion
drush command has the following operations:
cohesion:rebuild
Re-save and run pending updates on all Site Studio config entities.
cohesion:import
Import assets and rebuild element styles (replacement for the CRON).
Hooks
Several hooks are provided and documented in ./cohesion.api.php.
All hooks are in the sitestudio
group, so can be implemented in a
MODULE.sitestudio.inc file under your module's root if you wish.
note: the previous dx8
group is also included for backwards compatibility.
Global $settings options
Show the JSON fields for debugging:
Allow the API URL field on the account settings page to be editable:
Expose a version number field on the account settings page (for development):
Don't show the API key field on the account settings page:
Don't show the Google API key page:
Set the temporary stream wrapper that cohesion should use:
Utilise the database as a scratch directory during rebuild operations:
Set the sync directory that Site studio should use:
Set the max number of entities to import via sync in the batch process:
Set the max number of entities to rebuild at one time in the rebuild batch process:
Global $config options
Set API key:
Set organization key:
Show legacy sync options in the UI:
Site Studio Events
When certain Site Studio operations are taking place events are dispatched so that you can interact with it, but you must write your own event subscribers to subscribe to the relevant events.
The main Site Studio module's events can be found within the \Drupal\cohesion\SiteStudioEvents
class.
Pre Site Studio Rebuild
When a Site Studio rebuild operation is started the PreRebuildEvent will be dispatched.
To subscribe: Drupal\cohesion\SiteStudioEvents::PRE_REBUILD
The dispatched event is Drupal\cohesion\Event\PreRebuildEvent
.
Post Site Studio Rebuild
When a Site Studio rebuild operation is complete the PostRebuildEvent will be dispatched.
To subscribe: Drupal\cohesion\SiteStudioEvents::POST_REBUILD
The dispatched event is Drupal\cohesion\Event\PostRebuildEvent
.
Tests
Run something like: vendor/bin/phpunit -c docroot/core/phpunit.xml.dist --testsuite=unit --group Cohesion
License
Copyright (C) 2024 Acquia, Inc.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
All versions of cohesion with dependencies
cweagans/composer-patches Version ^1.7
drupal/entity_reference_revisions Version ^1.11
drupal/imce Version ^3.1
drupal/token Version ^1.14
drupal/jquery_ui Version ^1.7
drupal/stable Version ^2.0 || ^2.1
drush/drush Version ^11.6 || ^12 || ^13