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小节:

评论 (写第一个评论)