Module: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| (5 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
==PHP Schnipsel== | |||
* https://antistatique.net/blog/drupal-8-differences-between-configuration-api-state-api | |||
* https://www.drupal.org/docs/8/api/state-api/overview | |||
<syntaxhighlight line='line' lang="php"> | |||
$val = \Drupal::state()->get('key'); | |||
</syntaxhighlight> | |||
<syntaxhighlight line='line' lang="php"> | |||
\Drupal::state()->set('key','value'); | |||
</syntaxhighlight> | |||
==Drupal Modul aud drupal.org veröffentlichen== | ==Drupal Modul aud drupal.org veröffentlichen== | ||
| Zeile 6: | Zeile 18: | ||
2. WENN'S SINN MACHT, EINEN NEUEN SNAPSHOT 8.x-1.x-dev MACHEN ZU LASSEN (TÄGLICH ODER WÖCHENTLICH): | 2. WENN'S SINN MACHT, EINEN NEUEN SNAPSHOT 8.x-1.x-dev MACHEN ZU LASSEN (TÄGLICH ODER WÖCHENTLICH): | ||
git push | git push | ||
3. WENN DU EINEN RELEASE MACHEN WILLST (MONATLICH): | 3. ANZEIGEN [[Datei:Git sga.png|miniatur]] | ||
git tag 8.x-1. | git sga | ||
git push origin tag 8.x-1. | |||
4. WENN DU EINEN RELEASE MACHEN WILLST (MONATLICH): | |||
git tag 8.x-1.x | |||
git push origin tag 8.x-1.x | |||
Aktuelle Version vom 14. Dezember 2021, 12:43 Uhr
PHP Schnipsel
- https://antistatique.net/blog/drupal-8-differences-between-configuration-api-state-api
- https://www.drupal.org/docs/8/api/state-api/overview
$val = \Drupal::state()->get('key');
\Drupal::state()->set('key','value');
Drupal Modul aud drupal.org veröffentlichen
1. FÜR JEDE ÄNDERUNG (MEHRMALS TÄGLICH):
git add . git commit -m "NACHRICHT"
2. WENN'S SINN MACHT, EINEN NEUEN SNAPSHOT 8.x-1.x-dev MACHEN ZU LASSEN (TÄGLICH ODER WÖCHENTLICH):
git push
3. ANZEIGEN
git sga
4. WENN DU EINEN RELEASE MACHEN WILLST (MONATLICH):
git tag 8.x-1.x git push origin tag 8.x-1.x