[TASK] Remove unneeded "Edit page properties" context menu entry 31/49731/3
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 1 Sep 2016 18:22:01 +0000 (20:22 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 1 Sep 2016 18:58:17 +0000 (20:58 +0200)
Resolves: #77763
Releases: master
Change-Id: I0e56ff223359f9a555c2c06d534e1ddbc39db8d0
Reviewed-on: https://review.typo3.org/49731
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-77763-DeprecateClickMenuDB_editPageProperties.rst [new file with mode: 0644]

index f611119..e130fc3 100644 (file)
@@ -354,9 +354,6 @@ class ClickMenu
                     if ($anyEnableColumnsFieldAllowed && !in_array('edit_access', $this->disabledItems, true)) {
                         $localItems['edit_access'] = $this->DB_editAccess($table, $uid);
                     }
-                    if ($table === 'pages' && $this->editPageIconSet && !in_array('edit_pageproperties', $this->disabledItems, true)) {
-                        $localItems['edit_pageproperties'] = $this->DB_editPageProperties($uid);
-                    }
                 }
                 // Find delete element among the input menu items and insert the local items just before that:
                 $c = 0;
@@ -734,9 +731,11 @@ class ClickMenu
      * @param int $uid page uid to edit (PID)
      * @return array Item array, element in $menuItems
      * @internal
+     * @deprecated since TYPO3 v8, will be removed in TYPO3 v9
      */
     public function DB_editPageProperties($uid)
     {
+        GeneralUtility::logDeprecatedFunction();
         $url = BackendUtility::getModuleUrl('record_edit', [
             'edit[pages][' . $uid . ']' => 'edit'
         ]);
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-77763-DeprecateClickMenuDB_editPageProperties.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-77763-DeprecateClickMenuDB_editPageProperties.rst
new file mode 100644 (file)
index 0000000..9c3c0e5
--- /dev/null
@@ -0,0 +1,26 @@
+=========================================================================
+Deprecation: #77763 - Deprecate method ClickMenu::DB_editPageProperties()
+=========================================================================
+
+Description
+===========
+
+Method :php:``ClickMenu::DB_editPageProperties`` have been deprecated.
+
+
+Impact
+======
+
+Using the method will trigger a deprecation log message.
+
+
+Affected Installations
+======================
+
+Any TYPO3 installation using custom calls to :php:``ClickMenu::DB_editPageProperties``
+
+
+Migration
+=========
+
+No migration available.
\ No newline at end of file