According to DiscoveryInterface, it has to return NULL if the plugin is not found. Right no array() is returned what is bogus. Attached patch fixes that.

Comments

Status: Needs review » Needs work

The last submitted patch, d8_plugin_manager_get_definition.patch, failed testing.

mr.baileys’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, d8_plugin_manager_get_definition.patch, failed testing.

fago’s picture

Status: Needs work » Needs review
StatusFileSize
new1.4 KB
xano’s picture

Status: Needs review » Reviewed & tested by the community

Beautiful!

webchick’s picture

Status: Reviewed & tested by the community » Needs review
+++ b/core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldType/DateTimeItem.php
@@ -46,7 +46,7 @@ public static function propertyDefinitions(FieldDefinitionInterface $field_defin
-    $properties['date'] = DataDefinition::create('datetime_computed')
+    $properties['date'] = DataDefinition::create('any')

Is that intentional?

berdir’s picture

Status: Needs review » Reviewed & tested by the community

Yes, that bug is exposed by this patch. There is no datetime_computed plugin.

tstoeckler’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldType/DateTimeItem.php
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
old mode 100644
new mode 100755

This seems unintentional.

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new1.29 KB
tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 9: drupal_2220259_9.patch, failed testing.

xano’s picture

Status: Needs work » Reviewed & tested by the community

The tests fail because HEAD is broken.

tstoeckler’s picture

9: drupal_2220259_9.patch queued for re-testing.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

  • Commit b5ac743 on 8.x by webchick:
    Issue #2220259 by Xano, fago: DefaultPluginManager::getDefinition() does...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.