官术网_书友最值得收藏!

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 latter as development progressed.

In Drupal 8, great advancements have been made in this respect with the introduction of a centralized configuration system that although stores all configuration in the database, allows it all to be exported into YML files (and then reimported). So, from a development point of view, we have it much easier now 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 that it stores just a value (or multiple values together), once--the site name and email address, for example. You only have one site name. The latter, on the other hand, represents multiple instances of the same configuration type, for example, multiple View definitions or multiple entity bundles. In this book, we will see a bit of both.

主站蜘蛛池模板: 望城县| 公安县| 桐城市| 桐乡市| 依安县| 增城市| 西乡县| 乌鲁木齐市| 高要市| 波密县| 贺兰县| 巧家县| 临高县| 鄄城县| 浙江省| 舒兰市| 普宁市| 靖安县| 宁陵县| 建始县| 确山县| 团风县| 安仁县| 河津市| 新绛县| 平罗县| 沾化县| 隆化县| 类乌齐县| 星子县| 搜索| 南康市| 镇原县| 南平市| 荃湾区| 江山市| 葵青区| 安徽省| 昌宁县| 曲阳县| 界首市|