[CLEANUP] Rename AbstractContentObject::getContentObject()
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / AbstractContentObject.php
index 120b2b1..4fd1eb9 100644 (file)
@@ -51,11 +51,23 @@ abstract class AbstractContentObject
     abstract public function render($conf = array());
 
     /**
-     * Getter for current cObj
+     * Getter for current ContentObjectRenderer
      *
      * @return ContentObjectRenderer
+     * @deprecated since TYPO3 v8, will be removed with TYPO3 v9. Use getContentObjectRenderer() instead.
      */
     public function getContentObject()
+    {
+        GeneralUtility::logDeprecatedFunction();
+        return $this->getContentObjectRenderer();
+    }
+
+    /**
+     * Getter for current ContentObjectRenderer
+     *
+     * @return ContentObjectRenderer
+     */
+    public function getContentObjectRenderer()
     {
         return $this->cObj;
     }