common/models/resources/ModelMeta.php
public static function queryByType( $parentId, $parentType, $type, $config = [] ) {

		$query = static::queryByParent( $parentId, $parentType, $config );

		$query->andWhere( 'type=:type', [ ':type' => $type ] );

		return $query;
	}
public static function queryByType( $parentId, $parentType, $type, $config = [] ) {

		$query = static::queryByParent( $parentId, $parentType, $config );

		$query->andWhere( 'type=:type', [ ':type' => $type ] );

		return $query;
	}
public static function queryByType ( $ parentId , $ parentType , $ type , $ config = [ ] ) { $ query = static :: queryByParent ( $ parentId , $ parentType , $ config ) ; $ query -> andWhere ( 'type=:type' , [ ':type' => $ type ] ) ; return $ query ; }
Return query to find the model meta by given parent id, parent type and type.

@param integer $parentId
@param string $parentType
@param string $type
@param array $config
@return \yii\db\ActiveQuery to query by parent id, parent type and name.
Return query to find the model meta by given parent id parent type and type .