Programmatically check table exists in database in Drupal 8/9

In Drupal 8/9, you can programmatically check if a specific table name exists in the database using the schema()->tableExists() method provided by the database API.
copy-icon

Comments

Authors

Read Next