src/CoreBundle/EventListener/DcGeneral/DefinitionBuilder/PaletteBuilder.php
private function buildCondition($condition, $metaModel)
    {
        if (null === $condition) {
            return null;
        }

        return $this->conditionFactory->createCondition($condition, $metaModel);
    }
private function buildCondition($condition, $metaModel)
    {
        if (null === $condition) {
            return null;
        }

        return $this->conditionFactory->createCondition($condition, $metaModel);
    }
Build the conditions for the passed condition array.

@param array|null $condition The condition information.

@param IMetaModel $metaModel The MetaModel instance.

@return null|ConditionInterface

@throws \RuntimeException Throws if condition type not be transformed to an instance.