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

AkshayKalose’s picture

AkshayKalose’s picture

drupal_html_id() and drupal_html_class() have been moved into Drupal\Component\Utility\Html.

Sachini’s picture

Hi @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.

Sachini’s picture

Status: Needs review » Reviewed & tested by the community

  • AkshayKalose authored bbea2b4 on 8.x-1.x
    Issue #2404481 by AkshayKalose: Upgrade to Latest Drupal 8 Development...
Sachini’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

altrugon’s picture

I 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:

  1. If this is marked as fixed, shouldn't the recommended release be updated? It's almost a year older than dev
  2. The following statement didn't installed the dev release using composer composer require drupal/rdfui 8.1.*@dev I had to install it as follow composer require drupal/rdfui dev-8.x-1.x

Thank you for all your work.

Sachini’s picture

Hi altrugon,

Just released 8.x-1.0-beta1. Thank you for the pointing that out.
I'll look into the issue with composer too