/** * Static method to create the item object itself, is used for the one() method and in the current() method * of the QueryIterator class. * * @param array $itemArray The item array data for the object * @param string $langContext The language short code context, if any. * @return \cms\menu\Item */ public static function createItemObject(array $itemArray, $langContext) { return Yii::createObject(['class' => Item::className(), 'itemArray' => $itemArray, 'lang' => $langContext]); }
public static function createItemObject(array $itemArray) { return Yii::createObject(['class' => Item::className(), 'itemArray' => $itemArray]); }