Issue #3404023 by Wim Leers, phenaproxima, mglaman, borisson_, alexpott:...
Issue #3404023 by Wim Leers, phenaproxima, mglaman, borisson_, alexpott: DefaultSingleLazyPluginCollection::setConfiguration() accepts NULL but ConfigurableInterface::setConfiguration() does not
Changes for core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php: 5 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -128,6 +128,11 @@ public function getConfiguration() {
* {@inheritdoc}
*/
publicfunctionsetConfiguration($configuration){
if(!is_array($configuration)){
@trigger_error('Calling '.__METHOD__.'() with a non-array argument is deprecated in drupal:10.3.0 and will fail in drupal:11.0.0. See https://www.drupal.org/node/3406191',E_USER_DEPRECATED);
Changes for core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php: 5 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -79,6 +79,11 @@ public function getConfiguration() {
* {@inheritdoc}
*/
publicfunctionsetConfiguration($configuration){
if(!is_array($configuration)){
@trigger_error('Calling '.__METHOD__.'() with a non-array argument is deprecated in drupal:10.3.0 and will fail in drupal:11.0.0. See https://www.drupal.org/node/3406191',E_USER_DEPRECATED);
$this->expectDeprecation('Calling Drupal\Core\Plugin\DefaultLazyPluginCollection::setConfiguration() with a non-array argument is deprecated in drupal:10.3.0 and will fail in drupal:11.0.0. See https://www.drupal.org/node/3406191');
$this->expectDeprecation('Calling Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::setConfiguration() with a non-array argument is deprecated in drupal:10.3.0 and will fail in drupal:11.0.0. See https://www.drupal.org/node/3406191');