- Issue created by @smustgrave
- π³πΏNew Zealand quietone
I don't know why but the supporter section was missing the template.
To cover π Use null coalescing assignment operator Active
If we adopted this change, the Drupal Project would benefit by a shorter code, more laconic and easy to read.
There is currently no mention of null coalescing assignment operator ??=
in the standards. The proposal is to add a sub section "Null coalescing assignment operator ??=" to
the operator section β
, with the two parts,
None
The null coalescing assignment operator
??=
should be used instead of a null coalescing operator??
, to make code more readable. For example use
$elements['#attached'] ??= [];
instead of
$elements['#attached'] = $elements['#attached'] ?? [];
None
The null coalescing assignment operator
??=
should be used instead of aif (!isset())
condition, to make code shorter and more readable. For example use
$variables['content'][$name]['#attributes'] ??= [];
instead ofif (!isset($variables['content'][$name]['#attributes'])) { $variables['content'][$name]['#attributes'] = []; }
For a full explanation of these steps see the Coding Standards project page β
Active
Coding Standards
I don't know why but the supporter section was missing the template.