- Drupal 8 Module Development
- Daniel Sipos
- 230字
- 2021-07-02 12:22:35
Configuration
One of the major pet-peeves of Drupal developers (and developers of other popular CMSes for that matter) has always been the way configuration is handled and deployed from one environment to the next. Drupal 7 stored most of its configuration in the database, so various solutions had to be concocted by developers to get that moved up the ladder as development progressed.
In Drupal 8, great advancements have been made in this respect with the introduction of a centralized configuration system. Although it stores all configuration in the database, it allows it all to be exported into YML files (and then reimported). So, from a development point of view, we have a much better experience if certain features depend on configuration (for example, a new field).
Configuration is also of two kinds—simple and complex (configuration entities we noted in the Entities section). The difference between the two is that the former is always singular. In other words, there is only one instance of itself. For example, the site name and email address are stored inside such a configuration item. You wouldn't expect the need for more than one instance of it. However, in the case of the latter, you would. For example, a View definition is such a configuration entity because it follows a certain schema and we can have multiple View definitions. Makes sense doesn't it?
- Cocos2d-x游戲開發(fā):手把手教你Lua語(yǔ)言的編程方法
- 深入淺出Android Jetpack
- Python數(shù)據(jù)結(jié)構(gòu)與算法(視頻教學(xué)版)
- 數(shù)據(jù)結(jié)構(gòu)與算法分析(C++語(yǔ)言版)
- Mastering JavaScript Design Patterns(Second Edition)
- Java程序設(shè)計(jì)入門
- Nginx Lua開發(fā)實(shí)戰(zhàn)
- jQuery炫酷應(yīng)用實(shí)例集錦
- 新一代SDN:VMware NSX 網(wǎng)絡(luò)原理與實(shí)踐
- Emgu CV Essentials
- 深入實(shí)踐DDD:以DSL驅(qū)動(dòng)復(fù)雜軟件開發(fā)
- Photoshop智能手機(jī)APP界面設(shè)計(jì)
- PHP程序設(shè)計(jì)高級(jí)教程
- Java算法從菜鳥到達(dá)人
- Scala實(shí)用指南