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: * Example of .info.yml file:
* @code * @code
* name = Minimal * name: Minimal
* description = Start fresh, with only a few modules enabled. * description: Start fresh, with only a few modules enabled.
* dependencies[] = block * dependencies:
* dependencies[] = dblog * - block
* - dblog
* @endcode * @endcode
* *
* @param $profile * @param $profile

View File

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