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

Function isDrupal8App

pkg/ddevapp/drupal.go:354–360  ·  view source on GitHub ↗

isDrupal8App detects whether the code found is Drupal 8

(app *DdevApp)

Source from the content-addressed store, hash-verified

352
353// isDrupal8App detects whether the code found is Drupal 8
354func isDrupal8App(app *DdevApp) bool {
355 vStr, err := GetDrupalVersion(app)
356 if err != nil {
357 return false
358 }
359 return vStr == "8"
360}
361
362// isDrupal9App detects whether the code found is Drupal 9
363func isDrupal9App(app *DdevApp) bool {

Callers

nothing calls this directly

Calls 1

GetDrupalVersionFunction · 0.85

Tested by

no test coverage detected