https://www.drupal.org/docs/develop/using-composer https://getcomposer.org/
Composer est un gestionnaire de dépendances pour PHP.
https://www.lullabot.com/articles/drupal-8-composer-best-practices
<?php | |
namespace Drupal\my_module\Plugin\Filter; | |
use Drupal\Component\Utility\Html; | |
use Drupal\filter\FilterProcessResult; | |
use Drupal\filter\Plugin\FilterBase; | |
/** | |
* Makes the tables in the content show up using Bootstrap styling. |
<?php | |
/** | |
* Update- Create your_entity_name entity. | |
*/ | |
function my_module_update_8001() { | |
//check if the table exists first. If not, then create the entity. | |
if(!db_table_exists('your_entity_name')) { | |
\Drupal::entityTypeManager()->clearCachedDefinitions(); | |
\Drupal::entityDefinitionUpdateManager() |
<?php | |
// si limitation sur les bundles de paragraphes: renseigner target_bundles | |
// ajout du widget de paragraphs "classic paragraphs | |
$fields['paragraphs'] = BaseFieldDefinition::create('entity_reference_revisions') | |
->setLabel('Paragraphs') | |
->setDescription('Paragraphs') | |
->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED) | |
->setRequired(TRUE) |
composer update drupal/core --with-dependencies |
https://www.drupal.org/docs/develop/using-composer https://getcomposer.org/
Composer est un gestionnaire de dépendances pour PHP.
https://www.lullabot.com/articles/drupal-8-composer-best-practices
composer update zaporylie/composer-drupal-optimizations --no-plugins && composer update --lock |
composer show drupal/core-recommended | |
composer outdated 'drupal/*' | |
composer update drupal/core 'drupal/core-*' --with-all-dependencies |
composer update "drupal/core-*" --with-dependencies |
sudo lsof -iTCP -sTCP:LISTEN -n -P |
// update to composer v2 | |
composer selfupdate --2 | |
// rollback if you want | |
composer self-update --rollback |