Webiny\Component\Entity\Attribute\AbstractCollectionAttribute::__toString PHP Method

__toString() public method

Get string of masked entity values when array of instances is being converted to string
public __toString ( ) : mixed | null | string
return mixed | null | string
    public function __toString()
    {
        $references = [];
        foreach ($this->getValue() as $item) {
            $references[] = $item->getMaskedValue();
        }
        return $this->arr($references)->implode(', ')->val();
    }