Spatie\MediaLibrary\Media::getCustomProperty PHP Метод

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

Get if the value of custom property with the given name.
public getCustomProperty ( string $propertyName, mixed $default = null ) : mixed
$propertyName string
$default mixed
Результат mixed
    public function getCustomProperty(string $propertyName, $default = null)
    {
        return $this->custom_properties[$propertyName] ?? $default;
    }