/** * Construct an AbstractWidget instance using only the widget identifier, * without a CmsBlock entity. * * @param string $widgetIdentifier Widget Identifier * @param array $config Optional Config * @return Cms\Widget\AbstractWidget */ public static function identifierFactory($widgetIdentifier, array $config = []) { $widgetClass = WidgetManager::getWidgetClassName($widgetIdentifier); $widget = new $widgetClass($widgetIdentifier, $config, null); return $widget; }
/** * Returns the class name for the widget to use for this block * * @return string */ public function getWidgetClassName() { return WidgetManager::getWidgetClassName($this->widget); }