7.5 表单提交

龶龵龳龰龮龫龩龨龵龥龡龝龜龘龗龓龑龍龩龳龰龌龋龉龇龶龵龥龡龝龜龘龗龆submitForm齮齪齨龳龰齧龋齥齤齣齢::submitForm齟齝齙齖齒齏齌齊齇齆齅齂齮齪齨鼾龮龫鼽鼺鼷鼴齂龶鼳齮齪齨

鼯龶龵鼮龥鼭鼬method1齟method2龗鼛鼙齣齢鼗鼓齨龮龫齏buildForm齮齪鼏鼽鼺鼌鼊齂鼈鼆:

+

$form_state->setSubmitHandlers([
    ['::submitForm'],
    ['::method1'],
    [$this, 'method2']
]);

黖龶黕黓齂龥龡龝龜龘齣齢黑黍齂submitForm齮齪齟鼷鼗黋龵齮齪龗齣齢黇黃黁麿齅齥鼌齨

本书共79小节:

评论 (写第一个评论)