class ExtensionFileIsConverted

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Hook/Attribute/ExtensionFileIsConverted.php \Drupal\Core\Hook\Attribute\ExtensionFileIsConverted

Defines a ExtensionFileIsConverted attribute object.

This prevents deprecation messages for .theme files to allow legacy tests or supporting multiple versions of core. It must be on a function in the .theme 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

Expanded class hierarchy of ExtensionFileIsConverted

See also

https://www.drupal.org/node/3581222

https://www.drupal.org/node/3551652

6 files declare their use of ExtensionFileIsConverted
olivero.theme in core/themes/olivero/olivero.theme
Functions to support theming in the Olivero theme.
procedural_hook_theme.theme in core/modules/system/tests/themes/HookCollector/procedural_hook_theme/procedural_hook_theme.theme
stable9.theme in core/themes/stable9/stable9.theme
Functions to support theming in the Stable9 theme.
test_installer_theme.theme in core/modules/system/tests/themes/test_installer_theme/test_installer_theme.theme
ThemeHookCollectorPass.php in core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php

... See full list

File

core/lib/Drupal/Core/Hook/Attribute/ExtensionFileIsConverted.php, line 19

Namespace

Drupal\Core\Hook\Attribute
View source
class ExtensionFileIsConverted {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.