Set proper form name to rule conditions.

@param \Magento\Rule\Model\Condition\AbstractCondition $conditions Rule conditions.
@param string                                          $formName   Form Name.

@return void
508737
private function setConditionFormName(\Magento\Rule\Model\Condition\AbstractCondition $conditions, $formName)
    {
        $conditions->setJsFormObject($formName);

        if ($conditions->getConditions() && is_array($conditions->getConditions())) {
            foreach ($conditions->getConditions() as $condition) {
                $this->setConditionFormName($condition, $formName);
            }
        }
    }
984147
public function setRule($rule)
	{
		if(null === $rule)
		{
			$rule = Dispatch::module() . '/' . Dispatch::control() . '/' . Dispatch::action();
		}
		$this->rule = $rule;
	}
63256
public function setFieldForRelation($fieldName, FormField $field)
    {
        if (self::isLocalizedRelation($fieldName)) {
            self::$localizedFields[$this->ownerBaseClass . '_has_one'][$fieldName]['FormField'] = $field;
        }
    }
801976
public function validate($domainName, Constraint $constraint): void
    {
        if (null === $domainName) {
            return;
        }
        if (false === filter_var($domainName, FILTER_VALIDATE_DOMAIN)
            || false === \ts\stringContains($domainName, '.')
            || false !== \ts\stringContains($domainName, '//')
        ) {
            $this->context->buildViolation(sprintf(DomainName::MESSAGE, $this->formatValue($domainName)))
                          ->setParameter('{{ value }}', $this->formatValue($domainName))
                          ->setCode(DomainName::INVALID_DOMAIN_ERROR)
                          ->addViolation();
        }
    }
1066777
protected function configureForm($form, AbstractOptions $options)
    {
        /* @var $options \Applications\Options\ModuleOptions */
        $form->get($this->fileName)->setViewHelper('formImageUpload')
           ->setMaxSize($options->getContactImageMaxSize())
           ->setAllowedTypes($options->getContactImageMimeType())
           ->setForm($form);
    }
265118
public function setUsername(string $username): void
	{
		if (Strings::match($username, '/[^A-Za-z0-9_]/')) {
			throw new InvalidArgumentException('Username contains invalid characters');
		}

		/* @var $repository UsersRepository */
		$repository = $this->getRepository();
		$user = $repository->getByUsername($username);
		if ($user !== null && $user !== $this) {
			throw new UniqueConstraintViolationException("Username '$username' exists");
		}
		$this->username = $username;
	}
811522
public function setCondition(array $condition)
    {
        if (!isset($condition['function'])) {
            return false;
        }

        $this->conditional_function = $condition['function'];

        if (isset($condition['parameters'])) {
            $this->conditional_parameters = (array) $condition['parameters'];
        }

        if (isset($condition['inverse'])) {
            $this->conditional_inverse = (boolean) $condition['inverse'];
        }
    }
439893
public function setFormOptions($formOptions)
    {
        $this->formOptions = $this->formHelper->mergeOptions($this->formOptions, $formOptions);

        $this->getModelFromOptions();

        $this->getDataFromOptions();

        $this->checkIfNamedForm();

        return $this;
    }
1356051
public function where($conditions, array $values){
        if($this->where != ''){$this->where.='AND ';}
        $this->where.= $conditions . ' ';
        $this->where_values = array_merge($this->where_values, $values);
    }
982456
function removeThis( $conditions = null, $extraConditions = null )
    {
        $this->remove( array( "id" => $this->ID ), $extraConditions );
    }
841821
public function setAdditionalCondition($additionalCondition, $additionalConditionSql)
	{
		if ( ! empty($additionalCondition)) {
			$additionalCondition = '(' . $additionalCondition . ')';
		}
		$this->additionalCondition = $additionalCondition;

		if ( ! empty($additionalConditionSql)) {
			$additionalConditionSql = '(' . $additionalConditionSql . ')';
		}
		$this->additionalConditionSql = $additionalConditionSql;
	}
2298
public function setAbstract($abstract)
    {
        if ($abstract === true) {
            $this->addModifier(Modifiers::MODIFIER_ABSTRACT);
        } else {
            $this->removeModifier(Modifiers::MODIFIER_ABSTRACT);
        }
    }
455087
protected function setFormParameter(string $name, string $value): void
    {
        $this->formParameters->set($name, $value);
    }
834300
public function SetFormValue($FieldName, $Value = NULL) {
      $this->FormValues();
      if (is_array($FieldName))
         $this->_FormValues = array_merge($this->_FormValues, $FieldName);
      else
         $this->_FormValues[$FieldName] = $Value;
   }
392567
private function setConditionUrlParams(\Magento\Rule\Model\Condition\AbstractCondition $conditions, $urlParams)
    {
        $conditions->setUrlParams($urlParams);

        if ($conditions->getConditions() && is_array($conditions->getConditions())) {
            foreach ($conditions->getConditions() as $condition) {
                $this->setConditionUrlParams($condition, $urlParams);
            }
        }
    }
140353
public function addCondition($validation)
    {
        if (!$this->property) {
            throw new Exception\InvalidArgumentException(
                "Condition can be called only on properties!"
            );
        }
        $condition = new Validator\Condition(
            $this->_getValidation($validation),
            $this
        );
        $this->rules[] = $condition;
        return $condition->getValidator();
    }
196252
public function registerDefaultConditions()
    {
        if (false === $this->defaultConditionsWereRegistered) {
            $this->defaultConditionsWereRegistered = true;

            $this->registerCondition(
                FieldHasValueCondition::CONDITION_NAME,
                FieldHasValueCondition::class
            )->registerCondition(
                FieldHasErrorCondition::CONDITION_NAME,
                FieldHasErrorCondition::class
            )->registerCondition(
                FieldIsValidCondition::CONDITION_NAME,
                FieldIsValidCondition::class
            )->registerCondition(
                FieldIsEmptyCondition::CONDITION_NAME,
                FieldIsEmptyCondition::class
            )->registerCondition(
                FieldIsFilledCondition::CONDITION_IDENTIFIER,
                FieldIsFilledCondition::class
            )->registerCondition(
                FieldCountValuesCondition::CONDITION_IDENTIFIER,
                FieldCountValuesCondition::class
            );
        }
    }