Problem/Motivation

html/modules/contrib/smart_date/smart_date.views.inc is using Drupal service `views.field_data_provider`, but this is only available in D11.

See also #3557586

Issue fork smart_date-3568658

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jan kellermann created an issue. See original summary.

shank115’s picture

Try updating the code to check if the views.field_data_provider service exists before using it:

if (\Drupal::hasService('views.field_data_provider')) {
    $data = \Drupal::service('views.field_data_provider')
      ->defaultFieldImplementation($field);
} else {
    $data = views_field_default_views_data($field);
}

jan kellermann’s picture

Status: Active » Reviewed & tested by the community

Thank you. Works for me. I created MR.

mandclu made their first commit to this issue’s fork.

mandclu’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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