19. 渲染数组(render array)

龹龵龲龯龭龪龦龣龠龝 web 龒龏龌龋龉龅龁齾齺齸齷齳齯齮齫齨齧齦 drupal 齓齐齌齈齆齂齺齁鼾鼼鼺鼸鼴鼲齸齷齳齯鼮鼬

鼨鼥鼡鼟龁齧鼝鼛鼘鼕齮鼓鼏鼍鼊鼆鼂齁齮鼁鼟鼝鼛鼘鼕黿黼齮鼓鼏黺鼁齂齁黶黳黯黫黧黣齮鼾黫黧黣黟黛默鼝鼛齌黗黕黓黧黣龝黒黏齮黶黳龝鼾黫黧黣黋黋黉黈齳齯龝黇黃黶黳齮黂鼺龦麾鼝鼛齌黗龝黧黣鼺齮黂麻龦麾黧黣麻齮鼾麷龝齳齯麵麳麱齸齷齳齯齮麰鼨麬鼺龝 php 麩麥麡麟 CodeIgniter 麎麋麉 CI 麡麟麅龉龝麂鹿龁鹾麵黉鼾麷鼴

$this->load->view('show_news', $data);

鹤龉鹣齳 show_news 鹟默鹛鹙鼝鼛齮鹣齳 $data 麵黉鹗鹕龉鹓鹑鹍龝黯鼼齳齯齮鹌鹈齺黶鹇齂鼝鼛龝黧黣鼬

鹄黈鹂齸齷齳齯黉齳鹁龌龋鸽黒黏龌龋龝黯鼼鸺鸶齮齦齳鹁龌龋龉鹗鹕鸵鸱鸮黺鼁齂龁鸪龝齳鹁齮鸦鸢鸡鸠鸞鸜齾齸齷齳齯龉齮黒黏龌龋鸘黗鸗齸齷齳齯鼾黯鼼鸖鸒黿黼齮鼾麷黯鸏龌龋鸽黒黏鸍鸋鸈鸅齺齮鸁鷿鷼鷺黧鷷麋鷴齮鼾齌龝黒黏黉鷲鷮龝齮齁鷫鹌鷨鼲黒黏鼮鷥 json xml 齂鹤鸦龌龋鼲鷘鼮鼬

鷖鷕鹄鷓齸齷齳齯龝鷏鼁鷋齮鷊麰 CI 麡麟鷆鷃黣鷁龌龋齮 drupal 龉龝齸齷齳齯鶽鶻龯黯鶹鶸齮齁鹌鹈鶻鷿龝鶶鶲齮齦 drupal 龉齸齷齳齯齨鸘鹌鹈黶鹇齂鼝鼛龝黧黣齮鶮鹌鹈鶪鶦齳鹁齮鶥龏齳鹁齮齦齨龁鼝鼛龝鷺鶡鶟鼨鶝鶜鶙齸齷龝齳鹁齮鶟黗鸏鷘黯鷘 drupal 龝齸齷齳齯鼴

drupal 龉鶕鶔鶒齫龠鶏鶎鶙鶍鼴鶌鶈鶄黓黕鶁鵾鶌鶈齸齷齳齯鵾鵻鸮鵷鵳鼬鼨鼥鶌鶈龝黉齸齷齳齯齮黟鵯鵬鵩鵥鷼龏齮鷕鷼龏黟鵤鵬齸齷龌龋齮齸齷龌龋鵣鵠齸齷鶒黕齸齷齳齯鶜鶙齸齷齮齦鼾鼼齧鹗龉齸齷鶒鵜鹁齸齷齳齯鹌鹈龝鵙鵘鵩鷺鶡鵣鵠鵗鵔鵓龌龋齮鷫鹄鶲鵏鸖鶜鶙齸齷齮鵎鵊鵇鸮鵄鵁鼬齸齷齳齯齦鵀鼼龌龋鴼鴹鴶鹗龉鴲鷿鴯黈鼘龁黶鹇齂鴮鶎鴼鴹鴬齳鷡黇鹾齮黈鴫鴪鼝鴩鷆黕齸齷齳齯鶜鶙鴥鴡鼬

鴠齂鸮黯鼼麋鷴龝鴞鵓齮鷘鷘齸齷齳齯鴝鴜鼏麷,鷓鴚鴙鶶鶲鴗鼴

drupal 龉鼲齸齷鼮黉鴜鼏鴔鴐鴏麵黉黟黯鼼鴋鴇鴅龝齳齯麎 render array 麅鴃鴀鷥鳿鳾黃龝鼸鳼鳹齮麰鼨 html 鼸鳼鳹麎鹙黗麅齮鼾鼼鴋鴇鴅龝齳齯鴯麉鶍齸齷齳齯鼬

齸齷齳齯黉黯鼼龠鸁鷿鶹鷁龝鳶鳲鳮鳪齳齯齮鹤鵓鳦鳢鳠鶍鳝鴲鳜鼴黈 # 鳘鳗龝黂鼺麾黏鳖鷋齮龁鴪鹟黏鳓鼏齸齷鳒鶪鶦鷆鷆齮鳏龠黈 # 鳘鳗龝鳌鴔鹤鸦鳉鼺龝鳦鳢麾黏 children 麎鴹鸈鶍鵓齸齷鳦鳢鵾鶟黯鶹鷁鳦鳢鵾鵓鵄鵁齮 html 鳦鳢黉鳮鳪龝麅齮齦齸齷齳齯龉 children 鵓鳦鳢鳂黉黯鼼齳齯鳜麥齮鸦龦麾鶟黯鶹鷁龝齸齷齳齯鼬

鳖鷋鼺黉鳀默龝齮鵓鵄鵁鼺黉鲼鲹龝齮齁鹄黈黉龦麾鳠鴗龝黧黣鼺麎鳠鴗鲸鲷鷓鵊鲴鵗鵔麅鼬

齦鲲鲯龉鹄黈鼾麷鴹鸈鼴齸齷齳齯麵鲮 DOM drupal 齓齐龉龝鲣龪齮龹龯鶹鳦鳢齾鶟鶹鳦鳢鲡鷁鳮鳪齮鲝鷥黯鲚齸齷鲘鼬

$page = [
  '#type' => 'page',
  'content' => [
    'system_main' => […],
    'another_block' => […],
    '#sorted' => TRUE,
  ],
  'sidebar_first' => [
    …
  ],
];

看看常用的渲染数组属性,根据它的作用体会渲染数组怎么工作

#type 鹄鲗齮鲖鲒鵳鲐龠鲍鸜齮鹟默鳦鳢鳜麥齮鲊鲇黉鹟 html 鳦鳢鳜麥齮黉鶻鲃黯鷁龝鱿鶁齮鲍鸜齁龝鱾龝黉鶍齺鸗齸齷齳齯鶥鱼鱺鳜麥鱷鱳龝齸齷鳖鷋齮鱲鷓龵龌鱮龝齸齷鳜麥鵗鵔齮齨鹟默鷡鹟默龝鳦鳢鳜麥齨鶦齦黟齨鶥鱼鳌鶝麻齮鷓鶟鱭龝鳦鳢鳜麥鼬

#theme 鹄鲗齮默鷮黯鼼鵗鵔鱩鵓鶈鱧齮鵗鵔鱦鴹鶒黟龁鼾鼼鶈鱧鱤鴼鴹齸齷齳齯齮鶈鱧鳂鱠鼁鴼鴹鳌鴔鵓鳦鳢齮鶌鶈龝麻鱜鶦齦 #children 鳖鷋龉齮鶈鱧鹄黈齂齸齷齳齯鲍鸜鼲 #render_children 鼮鳖鷋鶍鱘鱗鱓鱒鱏鱧龁齮鵗鵔鱦鴹鶒鲒鵳鼍鼟龁鼝鼛鼘鼕齮黶鹇齂鼝鼛龝黧黣鹄黈鹌鹈齦齸齷齳齯龉鲊龁 # 鳘鳗齮麰鼨鼝鼛龉黧黣鼺鶍 yunke 齮鼓鼏齸齷齳齯黂鼺鶍 #yunke

#markup 鹄鲗齮齸齷齳齯鵏鸖鱉鱇龝 html 鱆鱄鼸鳼鳹齮鹄黈黉鳮鳪龝 html 鱀鰽齮麻麾龪鶍鼸鳼鳹鳜麥鷡 Markup 黕鶁齮黯鰺鴯鱆鰹鶍 Markup 黕鶁鶽鱳鶍齁黉鰵鸡龝麎麂齧鴃鷮龝麅齮黯鰳鼟龁 #type #theme 龦鰰鼾鼼鲗鰮齮鼾麷鹄黈鰬鵗鵔鰫默鷮鱆鱄

#plain_text 鹄鲗齮黉黯鼼鰩麂齧鴃鷮龝 html 鼸鳼鳹鱭龵齮鼨鼥鲍鸜齮齁黟鴯鴃鷮鴼鴹齮鲊鰰鴀 #markup 龝麻

#allowed_tags 鹄鲗齮鼨鼥 #markup 龝麻齨黉 Markup 黕鶁鰦黉黯鼼鼸鳼鳹齮鶽黺鼁鶜鶙鴃鷮鲊鴃鴀鷥 Markup 黕鶁齮鷕鰮麾黏鷕齧鹗龉鰥鸁鼟龁龝鱆鱄齮鼨鼥齨鲍鸜鱷鱳鼟龁 Drupal\Component\Utility\Xss::getAdminTagList() 鶌鶈龝鱆鱄齮鷕鰮鲍鸜黕 #plain_text 鳏龠鰎鶄

#access_callback 鹄鲗齮鰊鰉鰈鰆鶈鱧齮鸽鶕鶔鶒默鷮黇鹾鷊鰄

#access 鹄鲗齮鼨鼥鲍鸜鷕鰮鶽鰀鯿 #access_callback 鰮齮鰊鰉鰈鰆齮麻鹄黈黉 AccessResultInterface 鳜麥齮鷫鹄黈黉鯷鯵鳜麥齮鼨鼥齨鴯鰥鸁鶽齨鼍齸齷齳齯齮鶌鶈鯱鼸鳼鳹

#printed 鹄鲗齮鯷鯵麻齮鱆鰹黉鯮鯪麂鴯鴼鴹鷥齺 html 鼸鳼鳹鵄鵁齮齸齷鯨鼟龁 empty 鯤鯢鷕鳖鷋齮鼨鼥鶍鲇鯱麻鼾齨鼍鶜鶙齸齷齮鶌鶈鯱鼸鳼鳹

#defaults_loaded 鹄鲗齮鹟黏黉鯮鯪麂鸗龵齸齷齳齯鶥鱼鯠鲊齺黕黓鳦鳢鳜麥龝鱷鱳齸齷鳖鷋齮鷕麻鶍鯱鶽鱼鯝 #type 龣鹟鳦鳢鳜麥龝鱷鱳齸齷鳖鷋

#lazy_builder 鹄鲗齮齳齯麻齮鳂鱠龠鯘齫龠鳝鼼鳦鳢齮黯鼼鶈鱧齮黯鼼鶈鱧龝鹣齳齮鹣齳齫鶲黉 NULL 鷡鯒鱆黣鳜麥齮鯏鹟默鼾鼼鲗鰮鯨齨鶲鯍鹟默 children 鳦鳢鳒 '#cache','#create_placeholder','#weight','#printed' 鸍鯉龝鳖鷋齮齁鸢黓鱺齦鶈鱧龉鯆鯂

#lazy_builder_built 鹄鲗齮鯷鯵麻齮鵄鸠鼟龁齮鹟黏鳦鳢鯪麂鷖 #lazy_builder 鶈鱧鯆鯂

#create_placeholder 鹄鲗齮鯷鯵麻齮黉鯮鰫鵠鯁鮽鮻鮺鳼齮鯏鹟默鷕鲗鰮鯨齮 #lazy_builder 鳂鱠鶦齦齮鯮鶽鳏龠鶈鱧鯆鯂鵄鵁鱤鰰鴀鮻鮺鳼

#pre_render 鹄鲗齮麻黉黯鼼鶈鱧鴇鷥龝齳齯齮鼾黫鶈鱧鴬齳鶲齦齸齷鮹鴥鴡齸齷齳齯齮麰鼨鷏鮶鮳鹕鵾鴥鴡鵾鮯鮭鳿鸠鳠鷆齮鶈鱧鹄黈鲍鸜鮩鱼 #printed 齮鼨鼥鱧龁鵊齳齯龉鲍鸜齺 #printed 齮鹤麻齨鶍鯱黟鮦鱓齸齷

#post_render 鹄鲗齮黯鼼鷖鶈鱧鴇鷥龝齳齯齮齦齸齷鵓鳦鳢鲊鮥鱼齾 #markup 鸍鵊齮鮣鱏鱧龁鼾黫鶈鱧齮齁鸢鹄黈鴥鴡鸍鮹龝齸齷鵇鸮齮鳿黫黇黗龠鮠鳜鮞鴪 #theme_wrappers 齮齫黉齨鼟龁鵗鵔鵓龌龋

#states 鹄鲗齮龁鴪 JavaScript 鶕鶔鳦鳢龝鮖鮒齮龦麾鳦鳢齦鮑鮎鶒龉龝鮖鮒鵙鵘齮鲗龉鵾鮌鮋鷆鷆齮鱲鮊鷓鴬齳鼴 core\includes\common.inc : drupal_process_states

#sorted 鹄鲗齮鯷鯵麻齮龦麾鵓鳦鳢黉鯮鯪麂鴯鮳鹕齧

#weight 鹄鲗齮龦麾鵓鳦鳢齦鮄鳦鳢龉鮳鹕龝鮁鷏齮鮀魿鶏鮺麩齳魻魺

#attributes 鹄鲗齮龦麾鳦鳢龝 html 鳖鷋齮鹤麻鶍黯鼼齳齯齮鷕齳齯龝黂鼺鶍鳖鷋鼺齮黂麻鶍齸齷齳齯黕黓鴪 html 鳖鷋鼺龝鳖鷋鳦鳢龝麻齮鱲鷓 \core\lib\Drupal\Core\Render\Element.php 龉龝 setAttributes 黇鹾

#children 鵄鸠鼟龁齮麾黏鴯齸齷鵊龝鵓鳦鳢齮鼸鳼鳹鳜麥鷡鯒 Markup 黕鶁

#theme_wrappers 黯鼼鷖鵗鵔鱩鵓鶈鱧齯鷥龝齳齯齮鯏鵓鳦鳢鴯齸齷魲麻齂 #children 鵊齮鮣鱏鱧龁齁鸢齮齁鸢鼟龁鵗鵔鵓龌龋齮鵳龁鴪齂鵓鳦鳢龝 html 鵄鵁鱼龯鯉鶹鹌魮齮鼾鼼鲗鰮龁龝麰魪魦齮鲒鵳鼟龁 #theme

#render_children 鹄鲗齮鹗鹕鵄鸠鼟龁齮鼨鼥鲍鸜齮鶽齨鼍鼟龁 #theme_wrappers #theme 龉龝鵗鵔鱩鵓鴬齳齮鱗鱓魣魡鹇魠

#prefix 鹄鲗齮 html 鵄鵁鼸鳼鳹齮麂齧鰵鸡鴼鴹鵊鱼齾鵓鳦鳢鮹黗

#suffix 鹄鲗齮 html 鵄鵁鼸鳼鳹齮麂齧鰵鸡鴼鴹鵊鱼齾鵓鳦鳢鵊黗

#title 鹄鲗齮 html 鹙黗鱆鵔齮鼨鼥鰩鲍默齮黟鼟龁鱆鵔鸈魜鶒龹魘鷖鲍鸜鷆魕黇鸵鸱鸮鱆鵔齮

#cache_properties 鹄鲗齮齦鶜鶙鶪鶦龝鯨魓黟鴯鱜魑龝鳖鷋鷡鵓鵄鵁齮鱷鱳麻齫鶪鶦齸齷齳齯龉龝 #markup #attached #cache 鳖鷋齮鼨鼥鱜魑鵓鵄鵁鷫鸘黉鶪鶦鵓鵄鵁龝 #markup 鳖鷋

#attached 鹄鲗齮龁鴪魎魊 Libraries JavaScript settings feeds HTML <head> tags HTML <head> links HTTP 鳗鵾鶄黓魁鵾鮻鮺鳼 placeholders 齮鷓鶟

鷖鴪鬽鶎鳦鳢鳜麥龅龠鰫鬻龝鳖鷋齮鬸鷕齦齸齷齳齯龉鵜鹁齨鰄鳦鳢鳜麥麵龠齨鰄龝黈 # 鳘鳗龝黂鼺麎鳖鷋麅齮鷕鯉黶鹇齂鼝鼛龝黧黣鷫黉黈 # 鱼黧黣鼺鬵鶦齦齸齷齳齯龉齮龣黈齸齷齳齯龝鳖鷋齳黣鬲鴲齮齦鼾齌鸘鴞鬮齺鵎鵳鷓龝鳖鷋

鶻鷿鳖鷋鷓鼴 https://api.drupal.org/api/drupal/developer%21topics%21forms_api_refere…

齸齷齳齯鴯 Form API Render API 鬝龁齮鲖齳齯龉龠黫麾鷴鳦鳢龝鳖鷋齫黕鴪麾鷴 API 龠鴔鷮齮黟鼾麷龝齸齷齳齯龁齾齸齷 API 鯨黺鼁鲒齧 FormBuilder 鴃鴀齮鯮鶽鹄鶲龠齨鶲鬙鬕龝鴋鼥鼬

特别说明

#attached 鹄鲗齮龦麾齸齷鳦鳢龝鶥龏齮齸齷齳齯鴮鼼鶹鷁龝鶥龏鼍鴯齸齷龯鶟鱭黕鶁鬔鬒魎魊齮龠鬐鵓鳦鳢龠鼴

'library' css js 鬏齮龋麉鬍鬌鬏

'drupalSettings' 鼴鮹鬊 js 鲍鸜 (JavaScript settings)

'feed' 鼴鵄鵁鬈鯠 RSS feeds

'html_head' 鼴齦 HTML <head> 鳦鳢齌黗龝鱆鱄

'html_head_link' 鼴齦 HTML <head> 齌黗龝 <link> 鱆鱄

'http_header' HTTP 鶄黓鳗鸽鮖鮒魁

'placeholders': 鷓鶟鱭龝鮻鮺鳼鬆鬄鼬鬃鴔鼴鰰鴀麻龵鬁鷫鹄黈黉齸齷齳齯齮鷕鯨齁鴯齸齷鵊鱒鱤鰰鴀鮻鮺鳼齮鶪鶦鱆鱄鬀麷髾髽鰎鶄鴯鰰鴀龝鳦鳢

#cache 鹄鲗齮鹟默齸齷齳齯龝鶪鶦鹣齳齮 drupal 鶲鯍鲒齧鷕鲍鸜鳠髺鶪鶦齸齷齳齯鴮鼼鶹鷁龝齸齷鵇鸮齮鼾麷髷魦鸵鸱黣齮鱉鲃鷋鶲齮鴮鶹鷁龝鶪鶦齳鹁鼍鸗龯髾髽黈黛默龯黯鶹鷁龝鶪鶦鷋龲齮龠鬐鵓黂鼺鶍鼴

'keys' 鼴龁鴪鹟默鶪鶦 id 齮齦鵄鸠鯆鯂鼾鼼 id 鶮鼍鴋鯠 contexts 龝麻齮齸齷齳齯鼁鶪鶦鯨髳鲍鸜鼾鼼鰮

'contexts' 鼴鹟默鶪鶦龯鶟鱭

'tags' 鼴鹟默鶪鶦鱆鱄

'max-age' 鼴鹟默鶪鶦鵎鴲鯨鴝齮髯鶍鷴鮺齮黉鵎鴲鯨鴝齮齨黉齾髭鯨鸋齮髩齨齧髭鶍 -1 齮鱷鱳鶍髩髨

'bin' 鼴鹟默鶪鶦鬵鶦鮺鸜齮鼨齨鹟默鱷鱳鶍 render 齮鱷鱳鸞齦齳鹁鬏龝 render 鶪鶦麾龉鼬

齦齸齷齳齯龉 #cache #attached 鳀髺鷏鼁齮齸齷齧鹗龉鸦鸢鼍龹齸齷鲘龉鲡鷁髾髽齮鵏齾鱭髦鵜鳦鳢齮鼾麷髳鶲鱜髤龣龠鳦鳢龝鶪鶦髡齆齮黈鳒魎魊龣龠黺鼁龁齾龝 js css 齮鶍鷕龌龋鮽髝齺黯鼼麳麱齸齷龯鶟鱭龝黕鶁鸏鬔鬒鸦鸢齮 齸齷龯鶟鱭鼍黯鵏鬔鬒齸齷鹇魠齧鹗齮魎魊鵀鼼鹙黗黺鼁龝龣龠鶥龏齮鲊鯤鯢齸齷齳齯鴮鼼鶹鷁龝鹄鶪鶦鷋鼬

为什么渲染数组需要渲染占位符:

1 鼴龠鯨魓鹙黗黉黯鼝黯麷龝齮鸘鸘鳿黯鳦鳢齨黯麷齮麰鼨黯鼼鹙黗鸘黒黏龝龁鸪鼺齨黯麷齮鼨鼥龠黯髚龝龁鸪髖齨黉鼁鶪鶦黯髚髓鴏鼾黉齨髐鸱龝齮鷫齨鯠鴹鼬

2 鼴龠黫鵄鵁黧鴅髌髊鳀髺髆齮髂髯髁麵黧鴅齮骿骻鶻骹齮鼾鼼鯨魓鶻鮶鶪鶦龝鷥龵鷊黕麵鴲齮鼟龁鶪鶦齨髐鸱鼬

3 鼴龠黫鵄鵁鼊髆麵齧髭齮鶪鶦鳏鴜鼏骵麻齮鶮鼍骳骰鶪鶦骬鶙鷥龵鼬

骨龯龣骧鶏骥齮鼡鼍鵬龪鸦鸢麵黕黓鶪鶦鶏鼁鳢鼴龯鶟鱭鵾鱆鱄鵾鯨鸋齮鷖鴪鼾黫骤鬸骣骟鶪鶦齨髐鸱骝骰齧鴲齮龣黈鲍鸜鮻鮺鳼骚鶔齮黟鼾黫鶪鶦齨髐鸱龝鵄鵁鸽髐鸱龝鵄鵁骘骖鳘齮鸘鶪鶦髐鸱龝鵄鵁齮龹鶪鶦骕鸮齳鹁鵊鱒鵜鹁鮻鮺鳼鵙鵘黟鶪鶦齨髐鸱龝鵄鵁骔鯨鰰鴀鶜鱤齮鹄黈鷘鸮齸齷齳齯龝鮻鮺鳼骚鶔黉鲇鵳龠龁龝鼬

鯤鯢鹙黗鳿鸠鳠鶪鶦齨髐鸱鰦骑龁鮻鮺鳼龝齧鹗麳麱鼲 Auto-placeholdering 鼮麎鰫鵠鮻鮺齧鹗麅齮齁黉鳓鼏鰫鵠龝骍鴏麵鷷鮣鹁齸齷骋鸜齮鵁鶒鹣齳龉龝 renderer.config 麵黉鹟默鷕骋鸜鱷鱳麻鼨鴚鴙鵄鵁鴗鼴

鹄黈鷘齾骇龵鳏鴜鼏鰉鵔龝鲍鸜鲐鴯鹟默鶍鱷鱳骋鸜齺齮鶻鷿龝鵄鵁麵鼁鮣鹁骄鮠龝骔骁鷺鶡齮鼾鷫黉骄鮠驾鴅龝黯鼼鵗鼁鵄鵁鼬

#lazy_builder 龝鳦鳢鼍鴯骑龁鰫鵠鮻鮺骚鶔齮鬸鶍 #lazy_builder 龦麾驺驹鴇鮽齮黋黋齨黉驶齸齷齳齯鸏鴇鮽鹙黗齮鰦黉鼟龁黯鼼鶈鱧鼬

鬃鴔鮻鮺鳼鼍齦齸齷鵎鵊黯驴髳骬鶙鰰鴀齮鼾鼼骚鶔鰥鸁龌龋鶪鶦鸁鷿驳鱀齳鹁鼬

[renderer.config] => Array
                (
                    [required_cache_contexts] => Array
                        (
                            [0] => languages:language_interface
                            [1] => theme
                            [2] => user.permissions
                        )

                    [auto_placeholder_conditions] => Array
                        (
                            [max-age] => 0
                            [contexts] => Array
                                (
                                    [0] => session
                                    [1] => user
                                )

                            [tags] => Array
                                (
                                )
                        )

元素类型

drupal 龉鳦鳢鳜麥 "element types" 龵龲龯黉黯鼼鬙鹌魮鹍龝鱷鱳齸齷齳齯齮齸齷齳齯鹟默齺鳦鳢鳜麥黟鶥鱼鼾黫鱷鱳齸齷鳖鷋齮鼝鴩鹄黈默鷮鳦鳢鳜麥齮鯁鮽黯鼼骔龪齺 ElementInterface RenderElement 马龏驫鹄齮鳶鴪鷕鴩鵄鵁驧鷘龵龌鱮龝齸齷鳦鳢鳜麥鵗鵔鼬

drupal的渲染系统内容很多,需要分多个主题进行介绍,这里先介绍最最重要的渲染数组,其他内容请看后续主题。

有疑问没有关系,等学习完后续主题后便能云开雾散。

本书共88小节:

评论 (写第一个评论)