diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-75904-CategoryModelHasIconPropertyButNoDatabaseField.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-75904-CategoryModelHasIconPropertyButNoDatabaseField.rst new file mode 100644 index 0000000000000000000000000000000000000000..9fde72a4a802003c44362fd60aaea2de6a8f40fd --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-75904-CategoryModelHasIconPropertyButNoDatabaseField.rst @@ -0,0 +1,27 @@ +============================================================================ +Deprecation: #75904 - Category Model has icon property but no database field +============================================================================ + +Description +=========== + +Methods :php:``\TYPO3\CMS\Extbase\Domain\Model\Category::getIcon`` and +:php:``\TYPO3\CMS\Extbase\Domain\Model\Category::setIcon`` have been marked as deprecated. + + +Impact +====== + +Using the methods will trigger a deprecation log entry. + + +Affected Installations +====================== + +Instances with custom extensions that use these methods. + + +Migration +========= + +Implement the methods by yourself. diff --git a/typo3/sysext/extbase/Classes/Domain/Model/Category.php b/typo3/sysext/extbase/Classes/Domain/Model/Category.php index e1ff9f2b9bb94479c7e06cd2ab8f88c5759b3754..0873e918da902937a5219262d3033b12208f6447 100644 --- a/typo3/sysext/extbase/Classes/Domain/Model/Category.php +++ b/typo3/sysext/extbase/Classes/Domain/Model/Category.php @@ -93,10 +93,11 @@ class Category extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity * Returns the icon * * @return string $icon - * @api + * @deprecated since TYPO3 v8, will be removed in TYPO3 v9 */ public function getIcon() { + \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction(); return $this->icon; } @@ -105,10 +106,11 @@ class Category extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity * * @param string $icon * @return void - * @api + * @deprecated since TYPO3 v8, will be removed in TYPO3 v9 */ public function setIcon($icon) { + \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction(); $this->icon = $icon; }