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

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?

主站蜘蛛池模板: 石柱| 玛多县| 淳安县| 普宁市| 上虞市| 固镇县| 刚察县| 台前县| 宿松县| 仲巴县| 金秀| 武平县| 邵东县| 衡阳市| 错那县| 黄骅市| 和硕县| 平南县| 黔江区| 察哈| 斗六市| 阆中市| 武穴市| 萝北县| 新乡县| 岳普湖县| 河北省| 通江县| 正蓝旗| 营山县| 吴江市| 阿勒泰市| 垣曲县| 辽源市| 三门县| 富锦市| 晋中市| 大宁县| 武胜县| 兴城市| 昌平区|