Pimcore\Model\Object\Listing\Concrete::addFieldCollection PHP Метод

addFieldCollection() публичный Метод

public addFieldCollection ( $type, null $fieldname = null )
$type
$fieldname null
    public function addFieldCollection($type, $fieldname = null)
    {
        if (empty($type)) {
            throw new \Exception("No fieldcollectiontype given");
        }
        Object\Fieldcollection\Definition::getByKey($type);
        $this->fieldCollectionConfigs[] = ["type" => $type, "fieldname" => $fieldname];
    }