src/Entity/Content.php
/**
     * Get a regular field, not being part of a Collection
     */
Get a regular field, not being part of a Collection
Get a regular field not being part of a Collection
private function standaloneFieldFilter(string $fieldName): Collection
    {
        return $this->fields->filter(function (Field $field) use ($fieldName) {
            return $field->getName() === $fieldName && ! $field->hasParent();
        });
    }
private function standaloneFieldFilter ( string $ fieldName ) : Collection { return $ this -> fields -> filter ( function ( Field $ field ) use ( $ fieldName ) { return $ field -> getName ( ) === $ fieldName && ! $ field -> hasParent ( ) ; } ) ; }
Get a regular field, not being part of a Collection
Get a regular field not being part of a Collection