src/Configuration/NormalizerConfigPass.php
private function getRemovedFieldNames(array $fieldsConfig)
    {
        $removedFieldNames = [];
        foreach ($fieldsConfig as $fieldConfig) {
            if (isset($fieldConfig['property']) && 0 === \strpos($fieldConfig['property'], '-')) {
                $removedFieldNames[] = \mb_substr($fieldConfig['property'], 1);
            }
        }

        return $removedFieldNames;
    }
private function getRemovedFieldNames(array $fieldsConfig)
    {
        $removedFieldNames = [];
        foreach ($fieldsConfig as $fieldConfig) {
            if (isset($fieldConfig['property']) && 0 === \strpos($fieldConfig['property'], '-')) {
                $removedFieldNames[] = \mb_substr($fieldConfig['property'], 1);
            }
        }

        return $removedFieldNames;
    }
The 'edit' and 'new' views can remove fields defined in the 'form' view
by defining fields with a '-' dash at the beginning of its name (e.g.
{ property: '-name' } to remove the 'name' property).

@param array $fieldsConfig

@return array