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

Function isDrupal11App

pkg/ddevapp/drupal.go:381–387  ·  view source on GitHub ↗

isDrupal11App detects whether the code found is Drupal 11

(app *DdevApp)

Source from the content-addressed store, hash-verified

379
380// isDrupal11App detects whether the code found is Drupal 11
381func isDrupal11App(app *DdevApp) bool {
382 vStr, err := GetDrupalVersion(app)
383 if err != nil {
384 return false
385 }
386 return vStr == "11"
387}
388
389// isDrupal12App detects whether the code found is Drupal 12
390func isDrupal12App(app *DdevApp) bool {

Callers

nothing calls this directly

Calls 1

GetDrupalVersionFunction · 0.85

Tested by

no test coverage detected