src/Entity/Content.php
/**
     * Get the current regular fields, with the fields that are not present in
     * the definition anymore filtered out
     */
Get the current regular fields, with the fields that are not present in
the definition anymore filtered out
Get the current regular fields with the fields that are not present in the definition anymore filtered out
private function standaloneFieldsFilter(): Collection
    {
        $definition = $this->getDefinition();
        $keys = $definition ?
            $this->getDefinition()->get('fields')->keys()->all()
            : [];
        return $this->fields->filter(function (Field $field) use ($keys) {
            return ! $field->hasParent() &&
                (in_array($field->getName(), $keys, true) || empty($keys));
        });
    }
private function standaloneFieldsFilter ( ) : Collection { $ definition = $ this -> getDefinition ( ) ; $ keys = $ definition ? $ this -> getDefinition ( ) -> get ( 'fields' ) -> keys ( ) -> all ( ) : [ ] ; return $ this -> fields -> filter ( function ( Field $ field ) use ( $ keys ) { return ! $ field -> hasParent ( ) && ( in_array ( $ field -> getName ( ) , $ keys , true ) || empty ( $ keys ) ) ; } ) ; }
Get the current regular fields, with the fields that are not present in
 the definition anymore filtered out
Get the current regular fields with the fields that are not present in the definition anymore filtered out
// If the definition is missing, we cannot filter out keys. ¯\_(ツ)_/¯