Bolt\Storage\Field\Collection\RepeatingFieldCollection::getFieldType PHP Method

getFieldType() protected method

protected getFieldType ( $field ) : mixed
$field
return mixed
    protected function getFieldType($field)
    {
        if (!isset($this->mapping['data']['fields'][$field]['fieldtype'])) {
            throw new FieldConfigurationException('Invalid repeating field configuration for ' . $field);
        }
        $mapping = $this->mapping['data']['fields'][$field];
        $setting = $mapping['fieldtype'];
        return $this->em->getFieldManager()->get($setting, $mapping);
    }