Getting this error when trying to access display options of the widget:

Fatal error: Declaration of Drupal\office_hours\Plugin\Field\FieldFormatter\OfficeHoursFormatter::viewElements() must be compatible with Drupal\Core\Field\FormatterInterface::viewElements(Drupal\Core\Field\FieldItemListInterface $items, $langcode) in /var/www/drupal/modules/contrib/office_hours/src/Plugin/Field/FieldFormatter/OfficeHoursFormatter.php on line 28

I am using D8 RC4.

Comments

falster created an issue. See original summary.

johnv’s picture

Status: Active » Fixed

Thanks, it was not tested yet with the latest version of Drupal 8.
I can now add, edit and view a OH field in D8.0.0.

  • johnv committed ce6c7fd on 8.x-1.x
    Issue #2622890: Fatal error: Declaration of Drupal\office_hours\Plugin\...
falster’s picture

Thanks! Upgrading to 8.0.0 did the trick!

Status: Fixed » Closed (fixed)

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