PHP Fatal error: Class Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods

Created on 12 October 2015, over 8 years ago
Updated 30 December 2022, over 1 year ago

Hi all,

class EntityReferenceRevisionsItem implements interface OptionsProviderInterface, which holds 4 methods and should therefore implement them. If the interface is not implemented for type hinting causes the interface could simply be removed.

The original PHP error message reads like the following:
PHP Fatal error: Class Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods (Drupal\Core\TypedData\OptionsProviderInterface::getPossibleValues, Drupal\Core\TypedData\OptionsProviderInterface::getPossibleOptions, Drupal\Core\TypedData\OptionsProviderInterface::getSettableValues, ...) in entity_reference_revisions/src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php on line 278

Best
Chris

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany CHiLi.HH

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024