src/Settings/ImageSettingsSetFactory.php
public function create($owner_name = 'all')
    {
        //Пытаемся получить из $images_config, если нет, то создаем без конфига с одним original линком
        //Получаем массив использования типа картинки
        $imageType = $this->taxonomy->getType('image');

        $using = $imageType->getUsing();

        $imageSettings = [];

        if($owner_name === 'all')
        {
            foreach($using as $owner_type_name => $ownerType)
            {
                $fields = $ownerType->getOwns()->getTyped('image');

                foreach($fields as $field_name => $field)
                {
                    $imageSetting = $this->createImageSetting($owner_type_name, $field_name);
                    $imageSettings[$owner_type_name.'.'.$field_name] = $imageSetting;
                }
            }
        }
        else
        {
            //Проверим тип хозяина на существование
            $ownerType = $this->taxonomy->getType($owner_name);

            $owner_type_name = $ownerType->getName();

            $fields = $ownerType->getOwns()->getTyped('image');

            foreach($fields as $field_name => $field)
            {
                $imageSetting = $this->createImageSetting($owner_type_name, $field_name);
                $imageSettings[$owner_type_name.'.'.$field_name] = $imageSetting;
            }
        }

        $imageSettingsSet = new ImageSettingsSet($imageSettings);

        return $imageSettingsSet;
    }
public function create($owner_name = 'all')
    {
        //Пытаемся получить из $images_config, если нет, то создаем без конфига с одним original линком
        //Получаем массив использования типа картинки
        $imageType = $this->taxonomy->getType('image');

        $using = $imageType->getUsing();

        $imageSettings = [];

        if($owner_name === 'all')
        {
            foreach($using as $owner_type_name => $ownerType)
            {
                $fields = $ownerType->getOwns()->getTyped('image');

                foreach($fields as $field_name => $field)
                {
                    $imageSetting = $this->createImageSetting($owner_type_name, $field_name);
                    $imageSettings[$owner_type_name.'.'.$field_name] = $imageSetting;
                }
            }
        }
        else
        {
            //Проверим тип хозяина на существование
            $ownerType = $this->taxonomy->getType($owner_name);

            $owner_type_name = $ownerType->getName();

            $fields = $ownerType->getOwns()->getTyped('image');

            foreach($fields as $field_name => $field)
            {
                $imageSetting = $this->createImageSetting($owner_type_name, $field_name);
                $imageSettings[$owner_type_name.'.'.$field_name] = $imageSetting;
            }
        }

        $imageSettingsSet = new ImageSettingsSet($imageSettings);

        return $imageSettingsSet;
    }
@param $owner_name

@return \Interpro\ImageAggr\Contracts\Settings\Collection\ImageSettingsSet