/** * Initialize widget */ protected function initialize() { $name = $this->getShortcodeName(); //find shortcode if (!($this->shortcode = ctShortcodeHandler::getInstance()->getShortcode($name))) { throw new InvalidArgumentException("Cannot find shortcode " . $name); } //maybe child? $this->childShortcode = $this->shortcode->getChildShortcode(); }