Convert function_exists() to is_callable()

Created on 22 April 2025, 4 months 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