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

Function isDrupal9App

pkg/ddevapp/drupal.go:363–369  ·  view source on GitHub ↗

isDrupal9App detects whether the code found is Drupal 9

(app *DdevApp)

Source from the content-addressed store, hash-verified

361
362// isDrupal9App detects whether the code found is Drupal 9
363func isDrupal9App(app *DdevApp) bool {
364 vStr, err := GetDrupalVersion(app)
365 if err != nil {
366 return false
367 }
368 return vStr == "9"
369}
370
371// isDrupal10App detects whether the code found is Drupal 10
372func isDrupal10App(app *DdevApp) bool {

Callers

nothing calls this directly

Calls 1

GetDrupalVersionFunction · 0.85

Tested by

no test coverage detected