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

Function isDrupal12App

pkg/ddevapp/drupal.go:390–396  ·  view source on GitHub ↗

isDrupal12App detects whether the code found is Drupal 12

(app *DdevApp)

Source from the content-addressed store, hash-verified

388
389// isDrupal12App detects whether the code found is Drupal 12
390func isDrupal12App(app *DdevApp) bool {
391 vStr, err := GetDrupalVersion(app)
392 if err != nil {
393 return false
394 }
395 return vStr == "12"
396}
397
398// isDrupalApp returns true if the app is modern Drupal (drupal8+)
399func isDrupalApp(app *DdevApp) bool {

Callers

nothing calls this directly

Calls 1

GetDrupalVersionFunction · 0.85

Tested by

no test coverage detected