2.3 实验室和其他信息

总结

龺龷龶龲龮龭龬龫龧 Drupal 8 龔龐龎龌龉龆龅龃齿齾齽 齼龐齻齸齵齴

齳齲齮齭齩齧齣齢齼龐齠齝齚齖龧齕齑齐齌 FormBase 鼽齣齢鼻齵龉齸齵齴

  • Drupal 8 鼹龉齼龐齌鼵鼲鼱鼰鼭龉鼪鼦齴
  • 鼽龎鼢鼠鼟鼜鼚鼖鼒鼎齴
  • 鼍鼦鼋鼉鼈鼇鼆鼅鼁黾黺黷黳黲龉鼽齴
  • 黰黭鼹鼈鼇龧黰黩齠鼭黦齸黤鼽龉黢點黜齴

完整步骤

  1. 默黖黓 Examples 龔龐
  2. 齣齢龃龉龔龐黈黇 block_example
  3. 默黖黓 block_example 黈黇
  4. 齣齢 block_example.info.yml 鼍鼦
  5. 麰麮麭麩麨麧黓 block_example.info.yml 鼍鼦
  6. 齣齢 src/Plugin/Block 黈黇
  7. 默黖黓 src/Plugin/Block
  8. 齣齢 ExampleEmptyBlock.php 鼍鼦
  9. 麰麮麭麩麨麧黓 ExampleEmptyBlock.php 鼍鼦
  10. 麙麖龔龐
  11. 麓鼒麐麏
  12. 麎 /admin/structure/block 麉麅龃鼟鼜龉龐
  13. 麄麁龐黓鹿龅齼鹻齠麉麅鹷鹴鹲鹰
  14. 齣齢 ExampleConfigurableTextBlock.php 鼍鼦
  15. 麰麮麭麩麨麧黓 ExampleConfigurableTextBlock.php
  16. 麓鼒麐麏
  17. 鹧鹦鹢鹡齸齵
  18. 鼵 page_example 鹟齣齢 src/Form 黈黇
  19. 默黖黓 src/Form 黈黇
  20. 齣齢 PageExampleForm.php 鼍鼦
  21. 麰麮麭麩麨麧黓 PageExampleForm.php
  22. 鹜鹚 page_example.routing.yml 鼍鼦麄麁鹘鹕
  23. 麓鼒麐麏
  24. 鹧鹦 http://mysite.com/examples/page_example/form

附加活动

鹐鹏鹌鹈龉鹇齖鼱鹄鹁鸿鸻龉齮鸷齠麁鸴鸲龺龷鸱鸮龉鸪黩齴

  • 齣齢鸦龅鹷鹴鸢鸠鸞鸜龉齼龐
  • 齣齢齸齵齼龐鼁鸙鸕齠鸑齸齵鼹鸎鹡龉鸌鸉龌鸈齴
  • 鸄鼭齼龐鼪鼦齣齢鸂鷾龉齐鷻齴
  • 鷷鷶鹟鷲鷱鷰鹏龎龌黾鷬鷨鷧鼭黰黩齴

鶻鶸龉鶵鶳鶲齚齖黓鹢鹡齸齵鶰鶬鶩鶨鶤鶣service container鶡鶰鶠鶝黰鶙鶣dependency injection鶡鹄鶕黷龲鼵 Drupal 8 鼹鼲鶓鶐鶍鶋龉齴

评论 (写第一个评论)