11.1 基本概念

Drupal8龥龢

Drupal8龠龜龘龥龢龖龒龎

  • 龋龇(node)
  • 齴齱(comment)
  • 齩齧齦齢(taxonomy)
  • 齜齛(user)
  • 齕齒龥龢(configuration)

齈齇龥龢齆齃鼿鼼鼸鼵龎

龖龎

  • 鼲鼯鼬齜龘鼸鼵龎 $entity->id()
  • 龥龢鼥鼣鼢龘鼸鼵龎$node->getTitle()

鼟鼜鼙

龥龢鼖龠鼔鼒storage鼟鼜鼙鼐鼌鼊鼆龥龢龘鼂黿黻黷黳黱黭黪黨

黦黢黡黠點黜黙黕鼟鼜鼙鼐黓龖access control, viewing, listings and forms黨

黉龠齜龘黇齇龥龢齧黅

齕齒龥龢(Configuration Entity)

齜麾齕齒麼麻鼥鼐鼊鼆麹麶麲麰麭麬麩麨麦麥黨

麢麟龥龢(Content Entity)

麝麛麚麘麔麒麏鼐麰麭麢麟麋麇黱麹麶鼊鼆黨

Bundles

Bundles麂黙齇麀鹼麟鼙鼐齆齃鹸麘麔鹶齕齒龘鼢鹵黨龖龎

麢麟龥龢(Content Entity Types)

  • 1黻龋龇(Node), Bundles龖麢麟齧黅(Content Types)鼐麨麦齆齃Article黱Basic page

  • 2黻齩齧(Taxonomy), Bundles龖鹧鹦(Vocabulary)鼐龖鹧鹦A鼐鹧鹦B

  • 3黻鹙鹗(Block), Bundles龖鹒鼢鹵鹙鹗齧黅鼐龖鹙鹗齧黅A鼐鹙鹗齧黅B

  • 4黻齜齛(User), 鹉黠Bundles

齕齒龥龢(Configuration Entity Types)

鹈鹇Bundles

本书共79小节:

评论 (写第一个评论)