private function getFieldLayoutFieldsDefinition(array $fields): array
    {
        $fieldDefinitions = [];

        foreach ($fields as $field) {
            $fieldDefinitions[$field->handle] = $field->required;
        }

        return $fieldDefinitions;
    }
private function getFieldLayoutFieldsDefinition(array $fields): array
    {
        $fieldDefinitions = [];

        foreach ($fields as $field) {
            $fieldDefinitions[$field->handle] = $field->required;
        }

        return $fieldDefinitions;
    }
private function getFieldLayoutFieldsDefinition ( array $ fields ) : array { $ fieldDefinitions = [ ] ; foreach ( $ fields as $ field ) { $ fieldDefinitions [ $ field -> handle ] = $ field -> required ; } return $ fieldDefinitions ; }
Get field layout fields definition.

@param FieldInterface[] $fields

@return array
Get field layout fields definition .