Spatie\MediaLibrary\Media::getCustomProperty PHP Méthode

getCustomProperty() public méthode

Get if the value of custom property with the given name.
public getCustomProperty ( string $propertyName, mixed $default = null ) : mixed
$propertyName string
$default mixed
Résultat mixed
    public function getCustomProperty(string $propertyName, $default = null)
    {
        return $this->custom_properties[$propertyName] ?? $default;
    }