Feature: #82809 - Make ExtensionUtility::registerPlugin method return plugin signature.
See forge#82809
Description
The API method
TYPO3\
is used to register an Extbase plugin. The method is called in the
Configuration/ file of an extension and
often followed by the definition of a FlexForm.
Such methods require the plugin signature to be provided. To support
extension authors and to reduce coding errors, the
register
method therefore now returns the generated plugin signature as
string.
Example
$pluginSignature = ExtensionUtility::registerPlugin(
'indexed_search',
'Pi2',
'Testing'
);
The above call returns the plugin signature: indexedsearch_. This could
then be used for, e.g., adding a FlexForm:
ExtensionManagementUtility::addPiFlexFormValue(
$pluginSignature,
'FILE:EXT:indexed_search/Configuration/FlexForms/Form.xml'
);
Impact
The API method
TYPO3\
now returns the plugin signature, which might be used to adjust TCA to
further needs, e.g. enabling FlexForms.