51. 字段API(上)

龶龵API龨龦龶龵龣龡龠龝龚龖龠龒龏龎龍龊龉龇龆龅龁齾齺齶齵齴龉龆齰齮齾齺齪齩齧齥齡齞齶龅龁龉齝齜齛龆齘齕齒龝龚龖齎齌齪齋齶齊

齉龶龵齈齆齅齶齄齁齀

龶龵API齎齌鼿齶齉龶龵齈鼽鼼鼹鼶鼿鼴齶齉龶龵齈齆齅龆齧鼰鼯齶龉鼫鼪龆鼼鼹鼶鼴鼿齶鼰鼦鼤龉齩鼪龆鼰鼦鼢齆鼞鼦鼝鼜齶鼼鼹鼘鼕龉鼔鼢齆鼑鼫鼪齶鼍鼉龉鼈鼆鼄鼞鼂鼫鼪鼀黿齶黾黽鼽黺黸龉齩鼪黴黳黱黮齾齺鼘鼕齶黾黽黫齒鼼鼹鼶鼴龶龵黧鼦黤黠齋龉鼄鼞cms黚黗鼰鼦鼼鼹黓龚齶鼞鼦鼀黿黾黽鼰鼰鼘黑鼰鼦龶龵黍龣龡齒鼼鼹鼶齶黗鼰黊鼴黉龉齝drupal麷齧黗龉齜麵麳鼰鼦黾黽齘齕鼰黊鼴龉鼴鼿鼆鼰鼦鼍龶龵麲龣龡麯黾黽齶鼍龉黍龨龦麮麪龶龵麲龣龡鼂麯黾黽鼀黿齶鼝鼜龉麩黊鼼鼹鼴麧齋黤黑麥麢鼕麞鼰鼦齉龶龵齈龉麝麜麘麞龶龵api鼿齶龶龵鼼鼹鼘鼕黫麑麎麪麊齶齆齅龆齧鼰鼯齶龉齒麆麥黤黠麃麁齧鹿黧鼰鹾龉drupal齶齾鹼鹸鹴鹳鹲龉鹱鹭鹫鹸鹪龉鹧麲鹦鼞鹦鹥齶龍龊龉鹣鹟齀鹜鹘鹖鼄鼞鼼鼹黓龚鹒龅龁龝龚鹑鹐麥鼰鼦齉龶龵齈龉黧齒鹌黤齾鹋齋龆鼰黊龶龵鼴龣龡鼑齧黗龅龁龝龚齶鼝鼜龉齒鼴鼿麥bundle龶龵鹴麎齄齁黫鸿鸽齾鹼鼑鼞鼍龶龵龍龊龉鸻鸷鸵鸳龉鸲鸱鸮鸭齊

龝龚龖api鸪鸦齀

鹒鸣鸢龆鼘龝龚龖齎齌齶鸠鸟鸪鸦鼂鸛鸙龉鹸鼞鸗鸓鸣鹜鼤齶龝龚龖鼼鼹鸏鸎鹑齒drupal鼿鼄鼞鸋鸉鸅麥鼑齉鼼鼹鼘鼕+鷽鼼鼹鼘鼕齈齶鷺鷷黓鷴龉鹟齾齺龠鷳齌龠龶龵龠龝龚龖龎龉鼼鼹鼘鼕鷯龡鼽鷬鷨鼼鼹龉鷽鼼鼹鼘鼕鷯龡鼀黿鼼鼹齶鼼鼹龉鷽鼼鼹鹒Metadata鹑鼘鼕鼆鷟齛鷜鼼鼹鷚齅鼘鼕龉龇麊鸛龆麞鼘鷘鹼龉龝龚龖鼼鼹齎齌鷕龆黧鷔鷓龚齾鹼齊

麩鼦龝龚龖齎齌龨龦鷏鷋龝齁鼼鼹齀

齵鸣鼼鼹齀齛齥鷜麵鷇鷃鼼鼹龠齵鷁鼼鼹龉龆鶿齘鶼鶸鼼鼹鼽鼤鼴鼼鼹齶齵鸣鸟鷽

鼤鼴鼼鼹齀齥麎鶵麵鷯龡黗龝鼼鼹龝龚齶鶴鶳鼼齎龉龇齶鷽鶰齥麎龆齵鸣鼼鼹龠鶼鶸鼼鼹龠鼤鼴鼼鼹

鶼鶸鼼鼹齀齥麎鶵麵黿鶮鼼齎龉鶪麵鷯龡黾黽麵鶦齶齶鼘鼕龉鶢鶠黾黽鶜鷯龡鶘龝鼼鼹

鶖鼉鼈龨龦鶳麥龝龚鼼鼹龉鶳麥龝龚鶓龆鼰鼦鶳麥龉黍齧鶏鼴鶎鶊齶鼼鼹龉鶢鶠麎齋鷏鷋龝齁齶鼼鼹鼽鶳麥龝龚鼼鼹鷕齥麎龝龚龖麑鼆鼼鼹龉黍龨龦鹸鶉鼰鶆齁齶麆麥鼑黫鶃麊鶂齾鵾龖鼰鼦龝龚龖鼼鼹鼘鼕龆鵽龝龚id鵹鷃齶龉鶢鶠龝龚id鵵鹿龝龚鷚齅鼘鼕龉鵱鶢鶠龝龚鷚齅鼘鼕鷕齥麎鵯鵬鼼鼹鼘鼕龝齒鵫黉麎鵨鼀黿鷽鼼鼹龉鸽鼫鵦鼼鼹鼘鼕龨龦齶鵣鵢鸉鵠齾鵾龖鸿鵜龉黧鼦鶠鵙鵖鵔鵒齒龝龚龖鼼鼹鵑鵍鵉鼿龉鵦龇龨龦麆麥黳鵇龉黮鸽鶃麊鵆齥麎黴黳鷬鵃麎齋鶠鵙齊

麑鼆龝龚龖鼼鼹鼘鼕鵁龨龦getValue龠setValue鸉鵠龉麪麊鷬鵃齶龆php齶鷇鷃鼼鼹龝龚黫鶼鶸龝龚鼽鼤鼴龝龚龨龦get龠set鸉鵠龉麪麊鷬鵃齶龆龝龚龖鼼鼹鼘鼕鹒鴸鴵齀黧黉鶼鶸龝龚齶set鸉鵠鷺黸齶鼍黑麵php齶鷇鷃龝龚龉齧鸻鸷龝龚龖鼼鼹鼘鼕龉齝鼤鼴龝龚鴳齥麎龉黧龆鼰鼦齧鴱鴯齶鸋鸉鹑

麑鼆龝龚龖鼼鼹鼘鼕鵁齾鹼麎鴫黳鵇齀

Drupal\Core\TypedData\TypedDataInterface

鶘龝龚鼼鼹鼘鼕齾鹼齶黳鵇齀

Drupal\Core\TypedData\PrimitiveInterface

Drupal\Core\TypedData\ListInterface

Drupal\Core\TypedData\ComplexDataInterface

鶘龝鷽鼼鼹鼘鼕鹒鼼鼹鷚齅鼘鼕鹑齾鹼齶黳鵇齀

Drupal\Core\TypedData\DataDefinitionInterface

Drupal\Core\TypedData\ListDataDefinitionInterface

Drupal\Core\TypedData\ComplexDataDefinitionInterface

鶳麥龝龚齶鼼鼹鼘鼕鼽鷚齅鼘鼕齾鹼齶黳鵇齀

Drupal\Core\TypedData\DataReferenceInterface

Drupal\Core\TypedData\DataReferenceDefinitionInterface

鸗鴑鹱鴎鴊黧鴈黳鵇龉麩鼦鴆鴃鷕鷘鹼鼑齊

龶龵鼘鼕鼽龶龵鷚齅鼘鼕齀

龶龵齎齌鴀鸽鸅麥鼑齉鼼鼹鼘鼕+鷽鼼鼹鼘鼕齈齶鷺鷷黓鷴龉鼘黑齶鷜麵龶龵鼘鼕鼽龶龵鷚齅鼘鼕齀

龶龵鼘鼕齀

麳鼦齾齺龶龵鼘鼕鹒齾齺齶龶龵黾黽鹑鵁龆鼰鼦鼤鼴龝龚齶龝龚龖鼼鼹鼘鼕龉麵鳿鳻龆鼤鼴龝龚鳹鳶黧龆鳲麵麳鼦龶龵鼘鼕鵁齥麎鼢齆鼼鼹鼶鼿鼞鳯鼼鼹鳫鳩龉麳鳯鳫鳩鼘黑鼰鼦龶龵鳧FieldItem龉鼤鼴鼿齶鼰鼦鷽鶰鷕鼘黑鳟鼰鼦龶龵鳧龉鳲鶖鳛鳙齾鹼麯黳鵇齀

Drupal\Core\Field\FieldItemListInterface鹒鳕鳔鸿鼤鼴鼼鼹黳鵇齀Drupal\Core\TypedData\ListInterface鹑

麮鼿齶麳鼦鼤鼴鷽鶰龆鼰鼦龶龵鳧FieldItem鼘鼕龉龆鼰鼦鶼鶸龝龚鼼鼹鼘鼕鹒鼘黑鼼鼹鼶鼿齶鼰鳯鼼鼹鳫鳩鹑龉鼤鼴鷽鶰鳛鳙齾鹼麎鴫黳鵇齀

\Drupal\Core\Field\FieldItemInterface鹒鳕鳔鸿鶼鶸鼼鼹黳鵇齀Drupal\Core\TypedData\ComplexDataInterface鹑

龶龵鼘鼕齶鳓鳑齾鹼齀

Drupal\Core\Field\FieldItemList

麮鼿鼤鼴鷽鶰鼘鼕齶鳓鳑齾鹼麵齀

Drupal\Core\Field\FieldItemBase

龶龵鷚齅鼘鼕齀

龶龵鷚齅鼘鼕龆麲鳍鳋龶龵鼘鼕齶鷽鼼鼹鼘鼕龉鳉齒鹜鹘鼿黚龶龵鷚齅鸱麵鳅鼦鶆齁龉齥麎鷜麵齀鶢麥鶆齁鼽龣龡鶆齁龉龇麊鼰鳃齾鹼龶龵鷚齅鼘鼕齶龍龊龉鶢麥龶龵鷚齅鼘鼕齾鹼麯黳鵇齀

Drupal\Core\Field\FieldDefinitionInterface

鹒鳕鳔鸿鼤鼴鼼鼹鷚齅鼘鼕齀Drupal\Core\TypedData\ListDataDefinitionInterface鹑

龶龵龣龡鷚齅鼘鼕齾鹼麯黳鵇齀

Drupal\Core\Field\FieldStorageDefinitionInterface

齒鶢麥龶龵鷚齅鼘鼕鼿齥麎鶢鶠getFieldStorageDefinition()鸉鵠鵵鹿龶龵龣龡鷚齅鼘鼕

龶龵鷚齅鼘鼕齶鳓鳑齾鹼龆齀

Drupal\Core\Field\BaseFieldDefinition

麮鼿齶鷽鶰鷚齅鼘鼕鳓鳑齾鹼龆齀

Drupal\Core\Field\TypedData\FieldItemDataDefinition

鹜鹘鳓鳑龨龦齶龶龵鳧FieldItem龝龚齀

龶龵鼘鼕龆龶龵鳧FieldItem鼘鼕齎麞齶鼤鼴鼼鼹鼘鼕龉龶龵鳧FieldItem齶龝龚鶏鼴鳟龶龵龝龚龉鹜鹘鷚齅鼑鼄鼞龶龵龝龚龉麳鼦龝龚鵁鼘黑鳟鼰鼦龝龚龖鼼鼹龝龚龉龝龚id鲸鷴鹟鴫齀

"field_item:FIELD_TYPE"

鳓鳑龝龚鹟鴫鹒鲫鸣鹜鼤齶龝龚龖api鸏鸎鹑龉麎龝龚id鼤鷘齀

    [46] => field_item:comment
    [47] => field_item:datetime
    [48] => field_item:file
    [49] => field_item:image
    [50] => field_item:link
    [51] => field_item:list_float
    [52] => field_item:list_integer
    [53] => field_item:list_string
    [54] => field_item:path
    [55] => field_item:text
    [56] => field_item:text_long
    [57] => field_item:text_with_summary
    [58] => field_item:boolean
    [59] => field_item:changed
    [60] => field_item:created
    [61] => field_item:decimal
    [62] => field_item:email
    [63] => field_item:entity_reference
    [64] => field_item:float
    [65] => field_item:integer
    [66] => field_item:language
    [67] => field_item:map
    [68] => field_item:password
    [69] => field_item:string
    [70] => field_item:string_long
    [71] => field_item:timestamp
    [72] => field_item:uri
    [73] => field_item:uuid

鹒龶龵api齋鸢鱾鹑

鵃鼪鱺齀

鱶鼦鱲鱱鼆鹸鱰龉鱮黿鴸鸣鹜鼤齶鱫鼪鱩龎鼑龉黧龆鳲麵鱦鱢齒鱞鹲鼿鵖麑鱜齶鱶齌鱞鹲鷋鱛鱗鱔龉鱓鱏麳鱋鱉鱇齶鼴鱄鴀鸽鱂鸷齒鱁鰾鰽麳鱋鱉鰼drupal齶鹾鹾鰹鰹龉鰷鰶鴀鸽鱂鸷鰴鰳鸏鸎鰯鵙龉黧鷔鱂鸷齒鱂鸷鼪齪鱏龆鼆鰮鰬鵃麥齶龉鰫鱩麎麲麘麞鼰鷔鳓鰩龉鹟黗鼰鰨齩鳯齶黗鰤龉齝鱦鱢鰡鵹鼑鼰鰟鰛龉鹦龆鰘鰕龉龊鰓鰑鴸鰎鳯齧鵖鰌鰈龆齌鼞鳻鰇鰆齶鱛鰂龉鹼齒鸪麲鼑龉鰁麊鳕鯽龉鱂鸷齰齮drupal齶鯹鯷麊鼰鵬鱂鸷龉齒鱞鹲鼿鯵鯵鯳鯳龉鯲鼝鯱齰龉齧鵖鰌鰈龉麃鯮鼼龶鯬鯩齶鯦鯤龉鯣鯮drupal黧鼦鯟鯜鯛鹧麲齶鰇鰆齊

本书共63小节:

评论 (写第一个评论)