common/services/base/MetaService.php
public function create( $model, $config = [] ) {

		if( empty( $model->label ) ) {

			$model->label = $model->name;
		}

		if( !isset( $model->valueType ) ) {

			$model->valueType = Meta::VALUE_TYPE_TEXT;
		}

		return parent::create( $model );
	}
public function create( $model, $config = [] ) {

		if( empty( $model->label ) ) {

			$model->label = $model->name;
		}

		if( !isset( $model->valueType ) ) {

			$model->valueType = Meta::VALUE_TYPE_TEXT;
		}

		return parent::create( $model );
	}
public function create ( $ model , $ config = [ ] ) { if ( empty ( $ model -> label ) ) { $ model -> label = $ model -> name ; } if ( ! isset ( $ model -> valueType ) ) { $ model -> valueType = Meta :: VALUE_TYPE_TEXT ; } return parent :: create ( $ model ) ; }
It generates the label if not set and create the meta.

@param \cmsgears\core\common\models\base\Meta $model
@param array $config
@return \cmsgears\core\common\models\base\Meta
It generates the label if not set and create the meta .