Drupal 8 Module Development
Drupal8comeswithareleasecyclethatallowsfornewfunctionalitytobeaddedatamuchfasterpace.However,thisalsomeanscodedeprecationsandchangingarchitecturethatyouneedtostayontopof.Thisbookupdatesthefirsteditionandincludesthenewfunctionalityintroducedinversionsupto,andincluding8.7.ThebookwillfirstintroduceyoutotheDrupal8architectureanditssubsystemsbeforedivingintocreatingyourfirstmodulewithbasicfunctionality.YouwillworkwiththeDrupalloggingandmailingsystems,learnhowtooutputdatausingthethemelayerandworkwithmenusandlinksprogrammatically.Then,youwilllearnhowtoworkwithdifferentkindsofdatastorages,createcustomentities,fieldtypesandleveragetheDatabaseAPIforlowerleveldatabasequeries.YouwillfurtherseehowtointroduceJavaScriptintoyourmodule,workwiththevariousfilesystemsandensurethecodeyouwriteworksonmultilingualsites.Finally,youwilllearnhowtoprogrammaticallyworkwithViews,writeautomatedtestsforyourfunctionalityandalsowritesecurecodeingeneral.Bytheend,youwillhavelearnedhowtodevelopyourowncustommodulethatcanprovidecomplexbusinesssolutions.Andwhoknows,maybeyou’llevencontributeitbacktotheDrupalcommunity.ForewordbyDriesBuytaert,founderofDrupal.
·16萬字