Problem/Motivation

With Drupal 11.4 we get:

Error: Call to undefined function Drupal\views_entity_form_field\Plugin\views\field\views_ui_build_form_url()

Needs to be turned into

$this->buildFormUrl($form_state),

https://api.drupal.org/api/drupal/core%21modules%21views_ui%21admin.inc/... says it should get removed in Drupal 13. but seems already gone in Drupal 11.4.4?!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

anybody created an issue. See original summary.

anybody’s picture

Issue summary: View changes
anybody’s picture

Issue summary: View changes

https://git.drupalcode.org/search?search=views_ui_build_form_url&nav_sou... strange it is still there, but seems the file is not loaded any more?

anybody’s picture

Status: Active » Closed (duplicate)

Ok this had already been fixed, just not released. I created a new 1.2 release to fix this!

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.

anybody’s picture

Status: Closed (duplicate) » Active

Okay this goes into a different direction now.

The check for function_exists('views_ui_build_form_url') does not work any more. Result is:

views_ui module is not enabled.

This needs to be replaced by

$this->buildFormUrl($form_state),

I'll create a new 2.x branch for ^11

anybody’s picture

Title: Error: Call to undefined function Drupal\views_entity_form_field\Plugin\views\field\views_ui_build_form_url() » Drupal 11.4: Error: Call to undefined function Drupal\views_entity_form_field\Plugin\views\field\views_ui_build_form_url()

  • anybody committed 23c79d94 on 2.x
    fix: #3611585 Drupal 11.4: Error: Call to undefined function...
    

  • anybody committed 759980ea on 2.x
    Revert "fix: #3611585 Drupal 11.4: Error: Call to undefined function...

anybody changed the visibility of the branch 3611585-fix-buildFormUrl to hidden.

anybody’s picture

Status: Active » Needs review

Sorry merged to 2.x accidentally. Reverted. Here's the new MR with all changes: https://git.drupalcode.org/project/views_entity_form_field/-/merge_reque...

grevil’s picture

Status: Needs review » Reviewed & tested by the community

  • anybody committed 4cd12004 on 2.x
    fix: #3611585 Drupal 11.4: Error: Call to undefined function...
    
anybody’s picture

Version: 8.x-1.x-dev » 2.x-dev
Status: Reviewed & tested by the community » Fixed

Merged into 2.x and released 2.0.0-alpha1 with this fix and cleanup!

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.