params)) { return $this->params[$code]; } else { return null; } } /** * Method, which will be called once time. * @param array Params array. * @return void */ public function init(array $params = []) { } /** * Method, which executes just before creating the block (first add on page). * @param Block $block Block instance. * @return void */ public function beforeAdd(Block $block) { } /** * Method, which executes just before block. * @param Block $block Block instance. * @return void */ public function beforeView(Block $block) { } }