protected function isPrimaryHeader(Field $field)
    {
        return $field->isHeader || Helpers::strIs(Config::getHeadersPatterns(), $field->name);
    }
protected function isPrimaryHeader(Field $field)
    {
        return $field->isHeader || Helpers::strIs(Config::getHeadersPatterns(), $field->name);
    }
protected function isPrimaryHeader ( Field $ field ) { return $ field -> isHeader || Helpers :: strIs ( Config :: getHeadersPatterns ( ) , $ field -> name ) ; }
It checks if a given field is a primary or not.

@param CrestApps\CodeGenerator\Models\Field $field
@return bool
It checks if a given field is a primary or not .