Symfony\Component\Serializer\Normalizer\AbstractNormalizer::isAllowedAttribute PHP Method

isAllowedAttribute() protected method

Is this attribute allowed?
protected isAllowedAttribute ( object | string $classOrObject, string $attribute, string | null $format = null, array $context = [] ) : boolean
$classOrObject object | string
$attribute string
$format string | null
$context array
return boolean
    protected function isAllowedAttribute($classOrObject, $attribute, $format = null, array $context = array())
    {
        return !in_array($attribute, $this->ignoredAttributes);
    }