Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
It is difficult to find real world examples of Drupal's apis in use.
Proposed resolution
Link to the examples project from README.txt
Remaining tasks
Port Examples to D8
Link to the examples project from README.txt
User interface changes
A link will be added to the examples project from README.txt
API changes
none
Original report by @cweagans
Comment | File | Size | Author |
---|---|---|---|
#8 | 2072043_08.patch | 355 bytes | frob |
#6 | 2072043_06.patch | 350 bytes | er.pushpinderrana |
#1 | 2072043_01.patch | 337 bytes | cweagans |
Comments
Comment #1
cweagansComment #2
jhodgdonIMO it is a bit premature to add this to the D8 README, especially since there is an effort underway to move the most crucial examples into core, and secondly because so few of the examples have been ported to Drupal 8 so it's not all that useful yet.
Comment #3
DamienMcKennaPer the discussion on #1532612: Move Examples Project into Drupal core, several of the simple examples are going to be added to core, so this may not be needed at all.
Comment #4
frobUpdated the summery using template. Marking as active because I do think more discussion should happen about this.
Also, from reading the comments it is still up in the air if any of examples will be moving into core
and even if some of it did we should still have a link to the examples project for the non-simple examples.
This does cause one issue. There will be a great deal more pressure on the examples project to be kept up-to-date and not allow code in that doesn't follow proper coding standards.
Comment #5
Mile23It doesn't seem that moving Examples into core is in the cards at this point. But even if it is moved into core, it will be piecemeal over time, and thus a link to the external project would be appreciated.
I'd say "Learn from documented Drupal API examples:"
Comment #6
er.pushpinderrana CreditAttribution: er.pushpinderrana commentedUpdated the patch as per #5 comment.
Comment #7
jhodgdonThis patch doesn't seem to match the suggestion in #5... I think the wording is better in #5. Thanks!
Comment #8
frobhows this?
all i did was change the words.
Comment #9
frobComment #10
Mile23Looks great! Thanks, @frob.
Comment #11
jhodgdonI was just going to commit this but... should be https://www.drupal.org right?
Fixed that on commit. Thanks!
Comment #14
ressa CreditAttribution: ressa at Ardea commentedSadly, it looks like this link was lost during an update of the README file ... Perhaps it can be added again?
https://git.drupalcode.org/project/drupal/-/blob/11.x/README.md