Browse Source

Merge branch 'issue-11665' into 3.next

Add `Cell::initialize()`
Mark Story 8 years ago
parent
commit
4081815983
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/View/Cell.php

+ 14 - 0
src/View/Cell.php

@@ -160,6 +160,20 @@ abstract class Cell
         if (!empty($cellOptions['cache'])) {
             $this->_cache = $cellOptions['cache'];
         }
+
+        $this->initialize();
+    }
+
+    /**
+     * Initialization hook method.
+     *
+     * Implement this method to avoid having to overwrite
+     * the constructor and call parent.
+     *
+     * @return void
+     */
+    public function initialize()
+    {
     }
 
     /**