Commit 7effbff2 authored by Wouter Wolters's avatar Wouter Wolters Committed by Anja Leichsenring
Browse files

[TASK] Deprecate the $icon setter/getter in the Extbase Category model

Resolves: #75904
Releases: master
Change-Id: Ifa27348ae8204af7cac777756282016a88b0be6b
Reviewed-on: https://review.typo3.org/48034

Reviewed-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Reviewed-by: default avatarPaul Ilea <paul@target-e.com>
Reviewed-by: default avatarMarcin Krzyżanowski <m.krzyzanowski@macopedia.pl>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 321c2780
============================================================================
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.
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment