Issue #2838205 by 20th, panshulk, Damien Flament: Invalid YAML syntax in code examples in documentation

8.3.x
xjm 2017-01-05 09:41:49 -06:00
parent 1ac9846eac
commit 44a9491ce5
2 changed files with 11 additions and 10 deletions

View File

@ -1044,10 +1044,11 @@ function drupal_check_module($module) {
*
* Example of .info.yml file:
* @code
* name = Minimal
* description = Start fresh, with only a few modules enabled.
* dependencies[] = block
* dependencies[] = dblog
* name: Minimal
* description: Start fresh, with only a few modules enabled.
* dependencies:
* - block
* - dblog
* @endcode
*
* @param $profile

View File

@ -27,8 +27,8 @@
* Example .info.yml file properties for a custom module with a po file located
* in the module's folder.
* @code
* interface translation project = example_module
* interface translation server pattern = modules/custom/example_module/%project-%version.%language.po
* 'interface translation project': example_module
* 'interface translation server pattern': modules/custom/example_module/%project-%version.%language.po
* @endcode
*
* Streamwrappers can be used in the server pattern definition. The interface
@ -36,10 +36,10 @@
* using the "translations://" streamwrapper. But also other streamwrappers can
* be used.
* @code
* interface translation server pattern = translations://%project-%version.%language.po
* 'interface translation server pattern': translations://%project-%version.%language.po
* @endcode
* @code
* interface translation server pattern = public://translations/%project-%version.%language.po
* 'interface translation server pattern': public://translations/%project-%version.%language.po
* @endcode
*
* Multiple custom modules or themes sharing the same po file should have
@ -51,8 +51,8 @@
* Example .info.yml file properties for a custom module with a po file located
* on a remote translation server.
* @code
* interface translation project = example_module
* interface translation server pattern = http://example.com/files/translations/%core/%project/%project-%version.%language.po
* 'interface translation project': example_module
* 'interface translation server pattern': http://example.com/files/translations/%core/%project/%project-%version.%language.po
* @endcode
*
* Custom themes, features and distributions can implement these .info.yml file