common/models/traits/base/NameTypeTrait.php
public static function findFirstByNameType( $name, $type, $config = [] ) {

		return self::queryByNameType( $name, $type, $config )->one();
	}
public static function findFirstByNameType( $name, $type, $config = [] ) {

		return self::queryByNameType( $name, $type, $config )->one();
	}
public static function findFirstByNameType ( $ name , $ type , $ config = [ ] ) { return self :: queryByNameType ( $ name , $ type , $ config ) -> one ( ) ; }
Find and return first model using given name and type.

@param string $name
@param string $type
@param array $config
@return \cmsgears\core\common\models\base\ActiveRecord
Find and return first model using given name and type .