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 鼯鼨鶇鶄鶀鵼龇齮

评论 (写第一个评论)