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

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.

主站蜘蛛池模板: 达日县| 塔城市| 耒阳市| 嵊州市| 漳平市| 娄底市| 眉山市| 西华县| 张家港市| 朝阳市| 谢通门县| 延津县| 会昌县| 武鸣县| 北川| 秭归县| 绥棱县| 连江县| 昔阳县| 嘉善县| 延安市| 于田县| 蕉岭县| 崇阳县| 青浦区| 庆阳市| 汉阴县| 神农架林区| 巧家县| 莱芜市| 临城县| 白河县| 德州市| 固阳县| 南江县| 河间市| 罗山县| 故城县| 晋江市| 甘孜县| 武功县|