Adds modifier for form's configuration

@param FormConfigurationModifierInterface $modifier
@param int $priority
975210
public function addFormConfigurationModifier(FormConfigurationModifierInterface $modifier, $priority = 0)
    {
        $this->formConfigurationModifiers[$priority][] = $modifier;
        $this->needsSorting = true;
    }
301756
public function addModifier($modifier)
	{
		if (!in_array($modifier, $this->modifiers))
		{
			array_push($this->modifiers, trim($modifier));
		}

		return $this;
	}
611295
public function setModifier(EventManagerAwareInterface $modifier)
    {
        parent::setModifier($modifier);
        $this->modifier->getEventManager()->attach(ModifiableInterface::PHASE_PRE_BUILD, [$this,'preBuildListener']);
    }
368968
public function registerParameterValueProvider(IParameterValueProvider $parameterValueProvider, $priority = 0)
    {
        $this->providers[(int)$priority][] = $parameterValueProvider;
        ksort($this->providers);
    }
1319964
public function addAdaptMenu(MenuAdaptorInterface $adaptor, $priority = 0)
    {
        $this->adaptors[$priority][] = $adaptor;
        unset($this->sorted);
    }
518346
public function setConfigurator($configurator)
    {
        $this->changes['configurator'] = true;

        if (is_string($configurator) && false !== strpos($configurator, '::')) {
            $configurator = explode('::', $configurator, 2);
        }

        $this->configurator = $configurator;

        return $this;
    }
486426
public void addModifier(String modifier) {
		if (!Strings.isEmpty(modifier)) {
			this.sarlBehavior.getModifiers().add(modifier);
		}
	}
594717
public function setModifier(EventManagerAwareInterface $modifier)
    {
        $this->modifier = $modifier;
        foreach ($this->buildItems as $buildItem) {
            if ($buildItem instanceof ModifiableInterface) {
                $buildItem->setModifier($modifier);
            }
        }
        
        return $this;
    }
945922
public function addModifier(TransactionModifierInterface $modifier)
    {
        $this->modifiers[$modifier->getIdentifier()->getFull()] = $modifier;

        if ($modifier instanceof HasTransactionInterface) {
            $modifier->setTransaction($this);
        }
    }
19027
public function setPriority($priority)
    {
        if (!OptionsPriorities::isValid($priority)) {
            throw new InvalidOptionsException('priority is not valid, please refer to the documentation or use the constants of the class "OptionsPriorities"');
        }
        $this->priority = $priority;

        return $this;
    }
1295102
private function removeModifier($modifier)
    {
        if ($this->hasModifier($modifier)) {
            $this->modifiers = str_replace($modifier, '', $this->modifiers);
        }

        return $this;
    }
229362
public function addRouter(Router $router, int $priority = null)
	{
		if ($priority !== null) {
			Arrays::slice($this->indexedRouters, $priority, $router);
		} else {
			$this->routers[] = $router;
		}
	}
718791
protected function setModifiers($modifiers)
    {
        if (is_array($modifiers) === true) {
            $modifiersArray = $modifiers;
            $modifiers = Modifiers::MODIFIER_NONE;
            foreach ($modifiersArray as $modifier) {
                $modifiers |= $modifier;
            }
        }

        $this->modifiers = $modifiers;
    }
683879
public function addHandler(HandlerInterface $handler, $priority = 0)
    {
        if (filter_var($priority, FILTER_VALIDATE_INT) === false) {
            throw new InvalidArgumentException("Argument 'priority' should be an integer, got '$priority'");
        }

        if ($this->handlerAlreadyRegistered($handler)) {
            return;
        }

        $this->handlers[$priority][] = $handler;
    }
672635
public function addFile($file, $priority, $isDynamic = false)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $suffix = $isDynamic ? '_dynamic' : '';
        $filesParameterName = static::FILES_PARAMETER_NAME . $suffix;
        $includes = (array) $config->getGlobalParameter($filesParameterName);

        if (!preg_match('#^https?://#', $file)) {
            $file = $this->formLocalFileUrl($file);
        }

        if ($file) {
            $includes[$priority][] = $file;
            $includes[$priority] = array_unique($includes[$priority]);
            $config->setGlobalParameter($filesParameterName, $includes);
        }
    }
256267
public function add($loc, $lastmod = null, $changefreq = null, $priority = null)
    {
        $loc     = $this->escapeString($loc);
        $lastmod = !is_null($lastmod) ? $this->formatDate($lastmod) : null;

        return $this->addUrlToDocument(compact('loc', 'lastmod', 'changefreq', 'priority'));
    }
998889
public function addFactory(FactoryInterface $factory, $priority = 10)
    {
        $this->factoryList->insert($factory, $priority);
        return $this;
    }