75. 主题初始化器

龸龵龳龰龬龩龨龤龡龟龝龵龳龛龚龗龔龑 \Drupal\Core\Extension\Extension 齡齟齝龗龔齜齛龝龨齘龵龳齔齐齌齈齄齟齂齀齀鼼齝龵龳齔齈齄齟龸鼻鼹鼶鼵鼲鼱鼯鼬鼪鼨鼧齔鼼鼣鼡鼟鼛齔鼙鼗龵龳龗龔龑鼕鼔齡齟鼐齜齛鼏鼌鼈鼄齈齄齟鼃龰龬鼀黽黺黷鼀黴黰黬龵龳黨龵龳黦黥黣黠黜齔黛黗齟齝龗龔黔鼼龸龵龳黑黐黎龩鼶黍黌齔齟黋黉龵龳黑黐黎龩鼃黆黄黁麿龵龳龵龛龚麼麺黬麸麵麲

龵龳黑黐黎龩麯

麭麬 id theme.initialization

麞麯 Drupal\Core\Theme\ThemeInitialization

鼧麗鼻鼹麖麓麐麎麋鼨鼧齔龵龳麊齟麉麅 ActiveTheme 龗龔龑鼕鼔齡鹺黁麿龵龳龛龚齔龵龛龚麼麺龑龵龳鹸鹵鹴鼔齔 THEME.theme 麼麺齡

麵鹩鹧鹤鹢鹞鹚鹙齟麼麺 core/themes/engines/twig/twig.engine 鹐鼼鹍鹧鹤黁麿齟鹉鹈鹅鹁鼼鸽鼨鼧 twig 鹢鹞鹚鹙

鼙鼗龵龳龗龔 ActiveTheme

麞麯 \Drupal\Core\Theme\ActiveTheme

鸼龛龚龗龔 \Drupal\Core\Extension\Extension 黥鸻 ActiveTheme 龗龔鼼鼣鼡龨鸹齔齈齄鸵鸳龗龔齟鼐齜齛龝鼏鼌齟鼧麗龵龳鹈龬龩鸱鸰黉麉鸬龵龳齔黥鸪齈齄齟鹧鹤鸩鸳龸鸨鼔鸥鸢麯

\Drupal::cache('bootstrap')->get('theme.active_theme.' . $theme_name);

鼐齔鼈鼄鸅鸂鸁鼔龑鸀鷾龡鷽齔齈齄齡麯

$name 龵龳齔鷼龩鷻

$path 龵龳黥龗麗鼻鼹鹸鹵鹴齔鷷鷴齟鸁鷰 core/themes/bartik 鷭鷫鼏麊鷩鷰 /

$engine 鼨鼧齔鹢鹞鹚鹙齟鷨鷥鹩鷰 twig 鷭齟龸 drupal 鼶鷢鸨黋黉鼨鼧鷟鷜鹢鹞鹚鹙

$owner 鹢鹞鹚鹙齔龵龛龚麼麺齟鷚鸁鷰 core/themes/engines/twig/twig.engine

$baseThemes 龵龳黴黰鷙鼶鷗龵龳齔 ActiveTheme 龗龔鷖鷔齔鷓鷒齟鷑龨齘鷐鷎鹩鷋鷈鷗龵龳齟鷄麊龨齘鹩鷀鶼鷗龵龳

$extension 鶹龵龳齔龛龚龗龔 \Drupal\Core\Extension\Extension

$styleSheetsRemove 鹍鶮鶫鶧齔 css 麼麺鷓鷒齟黥龗麗鼻鼹鹸鹵鹴齔齐鷷鷴齟齜齛麼麺鷻齟鷫鼏鷩鷰 /

$libraries 鶣麋齐鶢黁麿齔鼀麼麺齟鶞鶛齜齛鼈鼄鷗龵龳齔鶗鶕

$regions 鶹龵龳齔鶔鶒麎鶐齟鸼鷗龵龳鷫鸪

$librariesOverride 鼀黽黺麎鶐齟鶞鶛齜齛鼈鼄鷗龵龳齔鶗鶕齟鷑龨齘鷐鷎鹩鷋鷈鶋鷄鶊鷗龵龳麎鶐齔黽黺龑鸨龵龳鷷鷴麵鹩鶇鷻齟鶇鷚鼼黽黺麎鶐鷓鷒齡齟鷄麊龨齘鹩鶹龵龳麎鶐齔黽黺齟鶅鷓鷑鶄齘鹩鷀鶼龵龳麎鶐齔黽黺

$librariesExtend 鼀黴黰齟鶞鶛鶃鹺龝鼈鼄鷗龵龳齔麎鶐齟鼼龨齘鷓鷒鷚齟鶇鷻鹩麋龛龚齔鼀鷻龑齛龛龚鷻鼏鷩黁鷰 / 鷭齡齟鶇鷚鹩龨齘鷓鷒齟鶂齘鷐鷎鹩麋黁鵾齔鼀鷻龑齛龛龚鷻鼏鷩黁鷰 / 鷭齡

鵺鵹鵷鶕麯

1 bug 麯龸鹵鼏 8.5 鵯鶹齔鼬鵫鼶鼀黽黺齔龰龬鵧鵣鹉鵟麐齟龸龵龳黴黰鷙鼶齟鵟麐齔黽黺鵧鵣鵝齝鼼麯

鹸鷗龵龳 >… 龑鷗龵龳齡 > 鷋鷈鷗龵龳 > 鷄鵘齔鼙鼗龵龳

鼐鹁齔鵗鵕鸹鵒鵏麊鵒鵍齟齂鼼鵉鵈鵆鹵鼏齔鵅鸰鵧鵣鼼麯

鷋鷈鷗龵龳 > … 龑鷗龵龳齡 > 鹸鷗龵龳 > 鷄鵘齔鼙鼗龵龳

鵁麗鴽鴼齔黽黺鵧鵣鴹鴶鷗龵龳鷢鸨黽黺鴵龵龳齔鼀齟鴽鼼鹉鶃龬齔齟鼄鴴鴲鴱

本书共88小节:

评论 (写第一个评论)