MetaModels\BackendIntegration\InputScreen\InputScreen::applyLegendConditions PHP Method

applyLegendConditions() protected method

Apply legend conditions to its attribute.
protected applyLegendConditions ( integer $attributeId, integer $activeLegendId ) : void
$attributeId integer The attribute setting id.
$activeLegendId integer The legend setting id.
return void
    protected function applyLegendConditions($attributeId, $activeLegendId)
    {
        // No conditions for legend defined.
        if (!isset($this->conditions[$activeLegendId])) {
            return;
        }
        if (!isset($this->conditions[$attributeId])) {
            $this->conditions[$attributeId] = new PropertyConditionChain();
        }
        $this->conditions[$attributeId]->addCondition($this->conditions[$activeLegendId]);
    }