Extension structure · Question 3 of 12

Where is the extension key specified in the composer.json of a TYPO3 extension?

1 answer is correct. Easy

Show answer

Answer

  • B Under extra.typo3/cms.extension-key

Explanation

TYPO3 reads the extension key from "extra": {"typo3/cms": {"extension-key": "my_ext"}} in composer.json. Since v14 this also applies in classic mode: an extension without a valid composer.json with a type starting with typo3-cms- and this entry is no longer detected. The package name in the name field (such as acme/my-ext) is a common misconception, because it follows Composer rules with a hyphen and a vendor and therefore often differs from the extension key with its underscore. The type field reads typo3-cms-extension for extensions and does not contain the key.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications