MCPcopy Create free account
hub / github.com/ddev/ddev / isDrupal10App

Function isDrupal10App

pkg/ddevapp/drupal.go:372–378  ·  view source on GitHub ↗

isDrupal10App detects whether the code found is Drupal 10

(app *DdevApp)

Source from the content-addressed store, hash-verified

370
371// isDrupal10App detects whether the code found is Drupal 10
372func isDrupal10App(app *DdevApp) bool {
373 vStr, err := GetDrupalVersion(app)
374 if err != nil {
375 return false
376 }
377 return vStr == "10"
378}
379
380// isDrupal11App detects whether the code found is Drupal 11
381func isDrupal11App(app *DdevApp) bool {

Callers

nothing calls this directly

Calls 1

GetDrupalVersionFunction · 0.85

Tested by

no test coverage detected