lib/Collection/Item/ItemDefinitionFactory.php
public function buildItemDefinition(string $valueType, array $configDefinitionHandlers): ItemDefinitionInterface
    {
        $configDefinitions = [];
        foreach ($configDefinitionHandlers as $configKey => $configDefinitionHandler) {
            $configDefinitions[$configKey] = $this->configDefinitionFactory->buildConfigDefinition(
                $configKey,
                $configDefinitionHandler
            );
        }

        return ItemDefinition::fromArray(
            [
                'valueType' => $valueType,
                'configDefinitions' => $configDefinitions,
            ]
        );
    }
public function buildItemDefinition(string $valueType, array $configDefinitionHandlers): ItemDefinitionInterface
    {
        $configDefinitions = [];
        foreach ($configDefinitionHandlers as $configKey => $configDefinitionHandler) {
            $configDefinitions[$configKey] = $this->configDefinitionFactory->buildConfigDefinition(
                $configKey,
                $configDefinitionHandler
            );
        }

        return ItemDefinition::fromArray(
            [
                'valueType' => $valueType,
                'configDefinitions' => $configDefinitions,
            ]
        );
    }
public function buildItemDefinition ( string $ valueType , array $ configDefinitionHandlers ) : ItemDefinitionInterface { $ configDefinitions = [ ] ; foreach ( $ configDefinitionHandlers as $ configKey => $ configDefinitionHandler ) { $ configDefinitions [ $ configKey ] = $ this -> configDefinitionFactory -> buildConfigDefinition ( $ configKey , $ configDefinitionHandler ) ; } return ItemDefinition :: fromArray ( [ 'valueType' => $ valueType , 'configDefinitions' => $ configDefinitions , ] ) ; }
Builds the item definition.

@param string $valueType
@param \Netgen\BlockManager\Config\ConfigDefinitionHandlerInterface[] $configDefinitionHandlers

@return \Netgen\BlockManager\Collection\Item\ItemDefinitionInterface
Builds the item definition .