7.5 表单提交

龷龳龰龯龬龪龨龤龳龣龢龟龝龛龚龗龓龏龨龰龯龍龋龊龈龷龳龣龢龟龝龛龚龇submitForm齰齭齫龰龯齩龋齨齥齤齠::submitForm齝齛齚齙齗齕齔齒齎齌齈齅齰齭齫齄龬龪齃齀鼿鼽齅龷鼻齰齭齫

鼺龷龳鼶龣鼲鼰method1齝method2龚鼠鼝齤齠鼙鼘齫龬龪齕buildForm齰齭鼓齃齀鼐鼌齅鼊鼉:

+

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

黧龷黣黢齅龣龢龟龝龛齤齠黡點齅submitForm齰齭齝鼿鼙黜龳齰齭龚齤齠默黔黐黌齈齨鼐齫

本书共79小节:

评论 (写第一个评论)