Convert function_exists() to is_callable()

Created on 22 April 2025, 3 days ago

Problem/Motivation

From the originating issue 🌱 [Policy, no patch] Normalize on usage of is_callable() instead of function_exists() Needs review

Instead of using function_exists() to verify if a callback exists, Drupal could use is_callable(); this would allow to use object and class methods as callbacks.

Steps to reproduce

Proposed resolution

Convert function_exists() to is_callable()

Remaining tasks

Create MR
It is possible that this may need to be broken

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

other

Created by

🇳🇿New Zealand quietone

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

Comments & Activities

Production build 0.71.5 2024