🇵🇱Poland @Krzysztof Domański

Poland
Account created on 29 April 2018, over 6 years ago
#

Recent comments

🇵🇱Poland Krzysztof Domański Poland

I have the same problem after changing to 8.x-1.0-alpha5. Drupal core 10.

🇵🇱Poland Krzysztof Domański Poland

For semantic reasons, deleting paragraphs is not recommended. A semantic element clearly describes its meaning to the browser.

If you need to get rid of <p> tags add them to core filter Limit allowed HTML tag and correct faulty HTML.

🇵🇱Poland Krzysztof Domański Poland

1/ Naming conventions should be consistent throughout the code. Change $currentUser to $current_user.
public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $currentUser = NULL) {

2/ It should be more descriptive.

+  /**
+   * CurrentUser.
+   *
+   * @var \Drupal\Core\Session\AccountProxyInterface
+   */
+  protected $currentUser;
+
+  /**
+   * CurrentUser constructor.
🇵🇱Poland Krzysztof Domański Poland

@Ranjit1032002

if ($currentUser === NULL) {
  @trigger_error...
  $current_user = \Drupal::currentUser();
}
$this->currentUser = $current_user;
🇵🇱Poland Krzysztof Domański Poland

It was fixed in PHP 8.1.7. Now it works in Drupal 10 and PHP 8.1. It still doesn't work in the older version e.g. Drupal 9.5 and PHP 8.0. See 🐛 DateTimePlus does not create dates with proper timestamps during DST transitions Needs work .

Production build 0.71.5 2024