Patch makes RDF UI compatible with latest Drupal 8 dev version, and Beta 4.
Fixes this and more (php_errors.lol):
[24-Dec-2014 22:16:26 UTC] PHP Fatal error: Call to undefined method Drupal\Core\Config\Entity\ConfigEntityType::isFieldable() in /home/ubuntu/workspace/drupal/modules/rdfui/src/Routing/RouteSubscriber.php on line 53
[24-Dec-2014 22:16:39 UTC] PHP Fatal error: Call to undefined method Drupal\Core\Config\Entity\ConfigEntityType::isFieldable() in /home/ubuntu/workspace/drupal/modules/rdfui/src/Routing/RouteSubscriber.php on line 53
[24-Dec-2014 22:17:07 UTC] PHP Fatal error: Call to undefined method Drupal\Core\Config\Entity\ConfigEntityType::isFieldable() in /home/ubuntu/workspace/drupal/modules/rdfui/src/Routing/RouteSubscriber.php on line 53
[24-Dec-2014 22:35:22 UTC] PHP Fatal error: Call to undefined function url() in /home/ubuntu/workspace/drupal/modules/rdfui/rdfui.module on line 18
[24-Dec-2014 22:36:10 UTC] Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "http://schema.org/" does not exist." at /home/ubuntu/workspace/drupal/core/lib/Drupal/Core/Routing/RouteProvider.php line 149
[24-Dec-2014 22:47:06 UTC] PHP Fatal error: Call to undefined method Drupal\Core\Config\Entity\ConfigEntityType::isFieldable() in /home/ubuntu/workspace/drupal/modules/rdfui/src/Plugin/Derivative/RdfUiLocalTask.php on line 71
[24-Dec-2014 22:47:13 UTC] PHP Fatal error: Call to undefined method Drupal\Core\Config\Entity\ConfigEntityType::isFieldable() in /home/ubuntu/workspace/drupal/modules/rdfui/src/Plugin/Derivative/RdfUiLocalTask.php on line 71
[24-Dec-2014 22:52:07 UTC] PHP Parse error: syntax error, unexpected ';' in /home/ubuntu/workspace/drupal/modules/rdfui/rdfui.module on line 19
[24-Dec-2014 22:52:31 UTC] PHP Fatal error: Call to undefined method Drupal\Core\Config\Entity\ConfigEntityType::isFieldable() in /home/ubuntu/workspace/drupal/modules/rdfui/src/Plugin/Derivative/RdfUiLocalTask.php on line 71
[24-Dec-2014 22:56:36 UTC] PHP Fatal error: Cannot use object of type Drupal\Core\Form\FormState as array in /home/ubuntu/workspace/drupal/modules/rdfui/src/ContentMappings.php on line 25
[24-Dec-2014 22:56:57 UTC] PHP Fatal error: Cannot use object of type Drupal\Core\Form\FormState as array in /home/ubuntu/workspace/drupal/modules/rdfui/src/ContentMappings.php on line 25
[24-Dec-2014 23:01:14 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 64 bytes) in /home/ubuntu/workspace/drupal/core/vendor/symfony/debug/Symfony/Component/Debug/Exception/FlattenException.php on line 216
[24-Dec-2014 23:01:57 UTC] Uncaught PHP Exception LogicException: "You are not allowed to use css in #attached" at /home/ubuntu/workspace/drupal/core/includes/common.inc line 1759
[24-Dec-2014 23:02:16 UTC] Uncaught PHP Exception LogicException: "You are not allowed to use css in #attached" at /home/ubuntu/workspace/drupal/core/includes/common.inc line 1759
[24-Dec-2014 23:03:56 UTC] Uncaught PHP Exception LogicException: "You are not allowed to use css in #attached" at /home/ubuntu/workspace/drupal/core/includes/common.inc line 1759
[24-Dec-2014 23:13:41 UTC] Uncaught PHP Exception LogicException: "You are not allowed to use css in #attached" at /home/ubuntu/workspace/drupal/core/includes/common.inc line 1759
[24-Dec-2014 23:23:13 UTC] PHP Fatal error: Cannot use object of type Drupal\Core\Form\FormState as array in /home/ubuntu/workspace/drupal/modules/rdfui/src/ContentMappings.php on line 70
[24-Dec-2014 23:26:49 UTC] PHP Fatal error: Cannot use object of type Drupal\Core\Form\FormState as array in /home/ubuntu/workspace/drupal/modules/rdfui/src/ContentMappings.php on line 71
FieldMappings now extends FormDisplayOverview as OverviewBase was merged into DisplayOverviewBase.
CSS Assets Removed and moved into Library.
http://schema.org/Text and all others pointing to 'text' now have value 'string' and 'text' is "Text (Formatted)". 'string' is "Text (plain)"
Other upgrades, and minor performance upgrades.
Comments
Comment #1
AkshayKalose commentedComment #2
AkshayKalose commenteddrupal_html_id() and drupal_html_class() have been moved into Drupal\Component\Utility\Html.
Comment #3
Sachini commentedHi @AkshayKalose,
Thanks for the fixes and improvements. I tested this with beta4 and it works correctly except for a few test cases (which I'm fixing now).
I will commit your final patch to 8.x-1.x branch.
Comment #4
Sachini commentedComment #6
Sachini commentedComment #8
altrugon commentedI did also run into this issue when I installed the recommended release 8.x-1.0-alpha1 and by switching to the dev release the problem went away, however there are 2 points that I would like to mention:
composer require drupal/rdfui 8.1.*@devI had to install it as followcomposer require drupal/rdfui dev-8.x-1.xThank you for all your work.
Comment #9
Sachini commentedHi altrugon,
Just released 8.x-1.0-beta1. Thank you for the pointing that out.
I'll look into the issue with composer too