Webiny\Component\Entity\Attribute\AbstractCollectionAttribute::__toString PHP Méthode

__toString() public méthode

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