class ExtensionFileIsConverted
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Hook/Attribute/ExtensionFileIsConverted.php \Drupal\Core\Hook\Attribute\ExtensionFileIsConverted
Defines a ExtensionFileIsConverted attribute object.
This prevents deprecation messages for .theme or .module files to allow legacy tests or supporting multiple versions of core. It must be on the first function in the .theme or .module file. This must only be used for legacy support, the extension must fully work without the file in versions >=11.3.0. If the minimum supported version of core is 11.3.0 then this attribute must not be used.
Attributes
#[\Attribute(\Attribute::TARGET_FUNCTION)]
Hierarchy
- class \Drupal\Core\Hook\Attribute\ExtensionFileIsConverted
Expanded class hierarchy of ExtensionFileIsConverted
See also
https://www.drupal.org/node/3581222
https://www.drupal.org/node/3551652
https://www.drupal.org/node/3619765
23 files declare their use of ExtensionFileIsConverted
- automated_cron.module in core/
modules/ automated_cron/ automated_cron.module - block.module in core/
modules/ block/ block.module - comment.module in core/
modules/ comment/ comment.module - content_translation.module in core/
modules/ content_translation/ content_translation.module - dblog.module in core/
modules/ dblog/ dblog.module
File
-
core/
lib/ Drupal/ Core/ Hook/ Attribute/ ExtensionFileIsConverted.php, line 21
Namespace
Drupal\Core\Hook\AttributeView source
class ExtensionFileIsConverted {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.